Contact Us page - by americanpatriot - on WordPress WooCommerce support

This topic has 12 replies, 3 voices, and was last updated 10 years, 1 months ago ago by Eva Kemp

  • Avatar: americanpatriot
    americanpatriot
    Participant
    October 10, 2014 at 02:23

    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! 🙂

    Thanks,

    AP

    11 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 10, 2014 at 06:45

    Hello,

    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:
    http://codex.wordpress.org/Child_Themes

    Also you can use some third-party plugin to implement such functionality.

    Regards,
    Robert Hall.

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 10, 2014 at 14:26

    Thanks but I couldn’t find what I wanted to change in the theme-functions.php file. I want to remove the word “Surname” and leave just “Name” on the form. How do I do that?

    Thanks,

    AP

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 10, 2014 at 14:42

    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?

    Thanks,

    AP

    Avatar: Eva
    Eva Kemp
    Support staff
    October 10, 2014 at 16:00

    Hello,

    Please provide us with FTP and wp-admin panel credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 10, 2014 at 17:50

    Requested information is in private content.

    Thanks,

    AP

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 14, 2014 at 13:20

    Hello,

    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

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 14, 2014 at 15:07

    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.

    Thank you!

    AP

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 14, 2014 at 15:19

    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?

    Thanks,

    AP

    Avatar: Eva
    Eva Kemp
    Support staff
    October 15, 2014 at 08:48

    Hello,

    You can try using just this code:
    `<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>`

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: americanpatriot
    americanpatriot
    Participant
    October 15, 2014 at 13:24

    That didn’t work. It gave me a Parse Error. I just left all of it in since it’s working. I’m not sure if it’s the best way to do it but hey, it works.

    Thank you!

    AP

    Avatar: Eva
    Eva Kemp
    Support staff
    October 15, 2014 at 15:41

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

The issue related to '‘Contact Us page’' has been successfully resolved, and the topic is now closed for further responses

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.