Reply To: Contact Form

#1464
Livemeshlivemesh
Keymaster

If you come up with a child theme, instead of modifying the original shortcode, pls copy the shortcode from the contact-shortcodes.php file and create a new shortcode with a changed name like “custom_contact_form” like this (modify the method name too) in the functions.php of the child theme –

function mo_child_contact_form_shortcode($atts, $content = null, $code) {
    extract(shortcode_atts(array(
        'class' => '',
        'mail_to' => '',

    ......
   
    $output .= '';

    $output .= '';

    return $output;

}

add_shortcode('custom_contact_form', 'mo_child_contact_form_shortcode');

Then you can use the new shortcode [custom_contact_form] in your pages. You can also remove the old shortcode using remove_shortcode() function and reuse the shortcode name ‘contact_form’ but hope the above change is simple enough to meet your needs.

You can change the case of the placeholder label by pasting the below CSS in the Custom CSS tab of options panel or in the style.css of the child theme –

::-webkit-input-placeholder { text-transform: none; font-style: italic; }
::-moz-placeholder { /* Firefox 19+ */ text-transform: none; font-style: italic; }
:-ms-input-placeholder { text-transform: none; font-style: italic; }