Add telephone field to contact forms - by darren

This topic has 4 replies, 3 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp

  • Avatar: darren
    darren
    Participant
    January 7, 2015 at 14:33

    Hi

    I understand (and have) added the following to shortcodes.php:

              <div class="form-group">
                    <p class="form-name">
                      <label for="contact-tele" class="control-label"><?php _e('Tele', ETHEME_DOMAIN) ?> <span class="required">*</span></label>
                      <input type="text" name="contact-tele" class="required-field form-control" id="contact-tele">
                    </p>
                </div>
    
                

    But how do I get that field to be included in the email that gets sent out? Where is the message code please.

    thanks

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 8, 2015 at 11:14

    Hello,

    You need edit also theme-functions.php (find the section “! Send message from contact form”) in the directory wp-content/themes/royal/framework.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: chouston92
    chouston92
    Participant
    January 14, 2015 at 15:51

    Hi Eva,

    Regarding this. What would you need to edit in /functions.php to show the phone number in the body of the email message?

    Thanks

    Avatar: Eva
    Eva Kemp
    Support staff
    January 14, 2015 at 16:24

    Hello,

    If you’re using child theme you need copy the function from theme-functions.php you want to modify and add it to functions.php of the child theme.

    Thank you.
    Regards,
    Eva Kemp.

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

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

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