Contact Form Modification - by innabojko

This topic has 2 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp

  • Avatar: innabojko
    innabojko
    Participant
    October 21, 2016 at 10:49

    Hello!

    Need to modify contact form – remove name and website fields.

    I’ve edited shortcodes.php, commented

    <div class=”form-group”>
    <p class=”form-name”>
    <label for=”name” class=”control-label”><?php _e(‘Name and Surname’, ETHEME_DOMAIN) ?> <span class=”required”>*</span></label>
    <input type=”text” name=”contact-name” class=”required-field form-control” id=”contact-name”>
    </p>
    </div>

    and

    <div class=”form-group”>
    <p class=”form-name”>
    <label for=”contact-website” class=”control-label”><?php _e(‘Website’, ETHEME_DOMAIN) ?></label>
    <input type=”text” name=”contact-website” class=”form-control” id=”contact-website”>
    </p>
    </div>

    code.

    But when I try to send message via contact form, I receive “Please, fill in the required fields!”

    So, how can I fix this?

    Thanks!

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    October 21, 2016 at 12:07

    Hello,

    You need also edit wp-content/themes/royal/framework/theme-fucntions.php and remove the needed lines there in the section “! Send message from contact form” in line 1378.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.