Support Information

Each of our themes comes with 6 months of premium support, which can be extended at any time.

Support working hours: Monday – Friday: 10.00 – 19.00 CET.

We answer all questions within 12-24 hours, however in some cases a slight delay may occur due to analyzing and fixing the issue.

Please note! In order to submit a support ticket you will need a purchase code. It can be found in your ThemeForest account in the Downloads list.

If you have a pre-purchase question, please select “Pre-sales questions” category.


Support Policy

Okay
  Print

How to Edit a Contact Form on a Homepage Slider

The form is added in Revolution Slider -> Static/Global layers:



The form text can be changed in the theme language file or customized in \wp-content\plugins\trx_utils\shortcodes\shortcodes.php file, lines 762-979:

// ---------------------------------- [trx_contact_form] ---------------------------------------
add_shortcode("trx_contact_form", "sc_contact_form");
//[trx_contact_form id="unique_id" style="main|order|boxed" title="Contact Form" description="Mauris aliquam habitasse magna a arcu eu mus sociis? Enim nunc? Integer facilisis, et eu dictumst, adipiscing tempor ultricies, lundium urna lacus quis."]
$THEMEREX_sc_contact_form_id = '';
$THEMEREX_sc_contact_form_counter = 0;
function sc_contact_form($atts, $content = null) {
    if (in_shortcode_blogger()) return '';
    extract(shortcode_atts(array(
        "id" => "",
        "class" => "",
        "title" => "",
        "description" => "",
        "action" => "",
        "top" => "",
        "bottom" => "",
        "left" => "",
        "right" => "",
        "style" => "main",
        "style_color" => "dark",
        "dots" => "no",
        "width" => ""
    ), $atts));
    if (empty($id)) $id = "sc_contact_form_".str_replace('.', '', mt_rand());
    $s = getStyleString($top, $right, $bottom, $left, $width);
    $class .= getStyleMargin($top, $right, $bottom, $left);
    wp_enqueue_script( 'form-contact', themerex_get_file_url('/js/_form_contact.js'), array('jquery'), null, true );
    global $THEMEREX_ajax_nonce, $THEMEREX_ajax_url, $THEMEREX_sc_contact_form_counter, $THEMEREX_sc_contact_form_id;
    $THEMEREX_sc_contact_form_id = $id;
    $THEMEREX_sc_contact_form_counter = 0;
    $content = do_shortcode($content);
    $output = '';
     static $cnt = 0;
        $cnt++;
        $privacy = themerex_get_privacy_text();
    if($style == 'call') {
        wp_enqueue_script( 'jquery-autosize', themerex_get_file_url('/js/jquery.autosize.js'), array('jquery'), null, true );
        $output = '<div class="'.($style_color=='dark' ? 'dark' : 'light').' sc_contact_form sc_call_form sc_contact_form_' . ($content ? 'custom' : 'contact') . (!empty($class) ? ' ' . $class : '') . '" '="" .="" ($s="" !="" ?="" style="' . $s . '" :="" '')="">'
        . ($title ? '<h4 class="title">' . $title . '</h4>' : '')
        . ($description ? '<div class="description">' . $description . '</div>' : '')
        . '<form' .="" ($id="" ?="" '="" id="' . $id . '" :="" '')="" data-formtype="' . ($content ? 'custom' : 'call') . '" method="post" action="' . ($action ? $action : $THEMEREX_ajax_url) . '">'
        . ($content != ''
            ? $content
            : '<input placeholder="' . __('Name', 'trx_utils') . '" class="sc_contact_form_username" type="text" name="username">'
            . '<input placeholder="' . __('Phone', 'trx_utils') . '" class="sc_contact_form_phone" type="text" name="phone">'
            . '<div class="message">'
            . '<textarea placeholder="' . __('Message', 'trx_utils') . '" class="sc_contact_form_message" name="message"></textarea>'
            . '</div>'
. ((!empty($privacy)) ? '<div class="sc_form_field sc_form_field_checkbox">
    <input type="checkbox" id="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '" name="i_agree_privacy_policy" class="sc_form_privacy_checkbox" value="1">
    <label for="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '">' . $privacy . '</label></div>' : '')
.'<div class="sc_contact_form_item sc_contact_form_button" '="" .="" (!empty($privacy)="" ?="" disabled="disabled" :="" '')=""><div class="squareButton sc_button_style_accent_2 sc_button_size_big global big"><button class="sc_contact_form_submit">'.__('SEND MESSAGE', 'trx_utils').'</button></div></div>'
.'<div class="result sc_infobox"></div>'
        )
        . '<div class="result sc_infobox"></div>'
        . ''
        . '</form'></div>';
    }
    else if($style == 'boxed') {
        wp_enqueue_script( 'jquery-autosize', themerex_get_file_url('/js/jquery.autosize.js'), array('jquery'), null, true );
        wp_enqueue_script( 'jquery-picker', themerex_get_file_url('/js/picker/picker.js'), array('jquery'), null, true );
        wp_enqueue_script( 'jquery-picker-date', themerex_get_file_url('/js/picker/picker.date.js'), array('jquery'), null, true );
        wp_enqueue_script( 'jquery-picker-time', themerex_get_file_url('/js/picker/picker.time.js'), array('jquery'), null, true );
        wp_enqueue_script( 'jquery-picker-start', themerex_get_file_url('/js/picker/picker.start.js'), array('jquery'), null, true );
        $output = '<div class="'.($style_color=='dark' ? 'dark' : 'light').' sc_contact_form sc_boxed_form sc_contact_form_' . ($content ? 'custom' : 'contact') . (!empty($class) ? ' ' . $class : '') . '" '="" .="" ($s="" !="" ?="" style="' . $s . '" :="" '')="">'
        . ($title ? '<h4 class="title">' . $title . '</h4>' : '')
        . ($description ? '<div class="description">' . $description . '</div>' : '')
        . '<form' .="" ($id="" ?="" '="" id="' . $id . '" :="" '')="" data-formtype="' . ($content ? 'custom' : 'boxed') . '" method="post" action="' . ($action ? $action : $THEMEREX_ajax_url) . '">'
        . ($content != ''
            ? $content
            : '<input placeholder="' . __('Name', 'trx_utils') . '" class="sc_contact_form_username" type="text" name="username">'
            . '<input placeholder="' . __('Email', 'trx_utils') . '" class="sc_contact_form_email" type="text" name="email">'
            . '<div class="message">'
            . '<textarea placeholder="' . __('Message', 'trx_utils') . '" class="sc_contact_form_message" name="message"></textarea>'
            . '</div>'
            . '<div class="date_time">'
            . '<div class="form_date">'
            . '<span class="icon"></span>'
            . '<input placeholder="' . __('Date', 'trx_utils') . '" class="sc_contact_form_date js__datepicker" type="text" name="date">'
            . '</div>'
            . '<div class="form_time">'
            . '<span class="icon"></span>'
            . '<input placeholder="' . __('Time', 'trx_utils') . '" class="sc_contact_form_time js__timepicker" type="text" name="time">'
            . '</div>'
            . '</div>'
. ((!empty($privacy)) ? '<div class="sc_form_field sc_form_field_checkbox">
    <input type="checkbox" id="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '" name="i_agree_privacy_policy" class="sc_form_privacy_checkbox" value="1">
    <label for="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '">' . $privacy . '</label></div>' : '')
.'<div class="sc_contact_form_item sc_contact_form_button" '="" .="" (!empty($privacy)="" ?="" disabled="disabled" :="" '')=""><div class="squareButton sc_button_style_accent_2 sc_button_size_big global big"><button class="sc_contact_form_submit">'.__('SUBMIT', 'trx_utils').'</button></div></div>'
.'<div class="result sc_infobox"></div>'
        )
        . '<div class="result sc_infobox"></div>'
        . ''
        . '</form'></div>';
    }
    else if($style!='order') {
        wp_enqueue_script( 'jquery-autosize', themerex_get_file_url('/js/jquery.autosize.js'), array('jquery'), null, true );
        $output = '<div class="'.($style_color=='dark' ? 'dark' : 'light').' sc_contact_form sc_contact_form_' . ($content ? 'custom' : 'contact') . (!empty($class) ? ' ' . $class : '') . '" '="" .="" ($s="" !="" ?="" style="' . $s . '" :="" '')="">'
        . ($title ? '<h1 class="title">' . $title . '</h1>' : '')
        . ($description ? '<div class="description">' . $description . '</div>' : '')
        . '<form' .="" ($id="" ?="" '="" id="' . $id . '" :="" '')="" data-formtype="' . ($content ? 'custom' : 'contact') . '" method="post" action="' . ($action ? $action : $THEMEREX_ajax_url) . '">'
        . ($content != ''
            ? $content
            : '<div class="columnsWrap">'
            . '<div class="columns1_2">'
            . '<label class="required" for="sc_contact_form_username">' . __('Name', 'trx_utils') . '</label><input placeholder="' . __('Your name', 'trx_utils') . '" id="sc_contact_form_username" type="text" name="username">'
            . '</div>'
            . '<div class="columns1_2">'
            . '<label class="required" for="sc_contact_form_email">' . __('E-mail', 'trx_utils') . '</label><input placeholder="' . __('Your e-mail', 'trx_utils') . '" id="sc_contact_form_email" type="text" name="email">'
            . '</div>'
            . '</div>'
            . '<div class="message">'
            . '<label class="required" for="sc_contact_form_message">' . __('Message', 'trx_utils') . '</label><textarea id="sc_contact_form_message" class="textAreaSize" name="message"></textarea>'
            . '</div>'
. ((!empty($privacy)) ? '<div class="sc_form_field sc_form_field_checkbox">
    <input type="checkbox" id="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '" name="i_agree_privacy_policy" class="sc_form_privacy_checkbox" value="1">
    <label for="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '">' . $privacy . '</label></div>' : '')
.'<div class="sc_contact_form_item sc_contact_form_button" '="" .="" (!empty($privacy)="" ?="" disabled="disabled" :="" '')=""><div class="squareButton sc_button_style_accent_2 sc_button_size_big global big"><button class="sc_contact_form_submit">'.__('SEND MESSAGE', 'trx_utils').'</button></div></div>'
.'<div class="result sc_infobox"></div>'
        )        
        . ''
        . '</form'></div>';
    }
    else {
        wp_enqueue_script( 'form', themerex_get_file_url('/js/form/modernizr.custom.js'), array('jquery'), null, false );
        wp_enqueue_script( 'classie', themerex_get_file_url('/js/form/classie.js'), array('jquery'), null, false );
        wp_enqueue_script( 'stepsForm', themerex_get_file_url('/js/form/stepsForm.js'), array('jquery'), null, false );
        $output = '<div class="'.($style_color=='dark' ? 'dark' : 'light').' sc_contact_form sc_contact_form_order' . (!empty($class) ? ' ' . $class : '') . '" '="" .="" ($s="" !="" ?="" style="' . $s . '" :="" '')="">'
        . ($title ? '<h1 class="title">' . $title . '</h1>' : '')
        . ($description ? '<div class="description">' . $description . '</div>' : '')
        . '<form class="simform" autocomplete="off" '="" .="" ($id="" ?="" id="' . $id . '" :="" '')="" data-formtype="okorder" method="post" action="' . ($action ? $action : $THEMEREX_ajax_url) . '">'
            .'<div class="simform-inner">'
                .'<ol class="questions">'
                            .'<li class="dot">'
                                .'<label for="q1">What\'s your name?</label>'
                                .'<input placeholder="' . __('Your name', 'trx_utils') . '" id="q1" name="q1" type="text">'
                            .'</li>'
                            .'<li class="dot">'
                                .'<label for="q2">Your company?</label>'
                                .'<input placeholder="' . __('Company', 'trx_utils') . '" id="q2" name="q2" type="text">'
                            .'</li>'
                            .'<li class="dot">'
                                .'<label for="q3">Your email address?</label>'
                                .'<input placeholder="' . __('Email', 'trx_utils') . '" id="q3" name="q3" type="text">'
                            .'</li>'
                            .'<li class="dot">'
                                .'<label for="q4">What kind of project?</label>'
                                .'<input placeholder="' . __('Project type', 'trx_utils') . '" id="q4" name="q4" type="text">'
                            .'</li>'
                            .'<li class="dot">'
                                .'<label for="q5">What\'s your budget?</label>'
                                .'<input placeholder="' . __('Ballpark budget', 'trx_utils') . '" id="q5" name="q5" type="text">'
                            .'</li>'
                            .'<li class="dot">'
                                .'<label for="q6">Tell us about your project</label>'
                                .'<input placeholder="' . __('Objectives', 'trx_utils') . '" id="q6" name="q6" type="text">'
                                . ((!empty($privacy)) ? '<div class="sc_form_field sc_form_field_checkbox">
                                    <input type="checkbox" id="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '" name="i_agree_privacy_policy" class="sc_form_privacy_checkbox" value="1">
                                    <label for="i_agree_privacy_policy_sc_form_' . esc_attr($cnt) . '">' . $privacy . '</label></div>' : '')
                            .'</li>'
                .'</ol><!-- /questions -->'
                .'<button class="submit" type="submit">Send answers</button>'
                .'<div class="controls">'
                    .'<button class="next" style="opacity:0;"></button>'
                    .'<div class="progress"></div>'
                    .'<span class="number">'
                        .'<span class="number-current"></span>'
                        .'<span class="number-total"></span>'
                    .'</span>'
                    .'<span class="error-message"></span>'
                .'</div><!-- / controls -->'
            .'</div><!-- /simform-inner -->'
            .'<span class="final-message"></span>'
        .'<div class="continue_button sc_button sc_button_size_big squareButton global big">'
            .'<a href="#">Continue</a>'
        .'</div>'
        . '</form>
        '.(sc_param_is_on($dots) ? '
        <div class="dots">
            <span class="dot_1"></span>
            <span class="dot_2"></span>
            <span class="dot_3"></span>
            <span class="dot_4"></span>
            <span class="dot_5"></span>
            <span class="dot_6"></span>
        </div>' : '').'
        <script>
            jQuery(document).ready(function () {
                var theForm = document.getElementById( "'.$id.'" );
                var orderForm = jQuery("#'.$id.'");
                new stepsForm( theForm, {
                    onSubmit : function( form ) {
                        // hide form
                        var action = orderForm.attr("action");
                        orderSubmitForm(theForm, orderForm, action!=undefined ? action : THEMEREX_ajax_url, THEMEREX_ajax_nonce);
                    }
                });
            });
        </script>
        </div>';
    }
    return apply_filters('themerex_shortcode_output', $output, 'trx_contact_form', $atts, $content);
}