This is probably a silly question but I’m going to ask it any way. How can I edit the demo contact us form? It just uses a shortcode and I can’t find anything anywhere that allows me to change the form itself. Do I have to edit a core file? I”m soooooo confused! 🙂
You can edit file /themes/royal/framework/theme-functions.php (line 1285).
But we don’t recommended to do that.
Before editing be sure to make a backup this file and do that in Child Theme.
Read more here how to create Child Theme and use it:
Also you can use some third-party plugin to implement such functionality.
UPDATE: I did find the “surname” in /themes/royal/framework/shortcodes.php. I made a new file called shortcodes.php and copied the contents of the original file to that file. I removed the “surname” and placed the new file in /themes/royalchild/framework/shortcodes.php but it didn’t change on the front-end. Am I missing something?
We’re unable to access your site. There is an error “Server not found”.
Concerning the contact form you needn’t copy the whole file shortcodes.php. You should use functions.php of the child theme and rewrite just the function and code you want to change. Please read this article carefully: http://codex.wordpress.org/Child_Themes
Yes, I scrapped the site and started over. If I have issues I’ll post another question and use the new login information.
I’ll look into rewriting the code and adding it to the functions.php in my child theme.
I copied the entire Contact Form section found in the shortcodes.php file, pasted it in my child theme’s functions.php file, made the changes I wanted, and it worked. Thank you!
Do I need that entire section or can I pare it down to something smaller and still get the same result?
You can try using just this code:
<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”>
The topic ‘Contact Us page’ is closed to new replies.
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty