This topic has 2 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp
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!
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.
Tagged: contact form, customization, modification, template, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up