Contact Page

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #247

    I have set up the contact page via the shortcode..[contact_form mail_to=”gino@mydomain.com.au”]..

    However my email responses only show the message..There is no Name, Subject, Phone, etc..can you advise,,thanks Gino..

    #249
    livemesh
    Keymaster

    The response at present employs name supplied by the user in the subject. Email is implied by reply-to email addresses or the sent email address. The form itself does not have subject field. Since this is often requested feature, I plan on adding a few more fields to the contact form and making it optional from the shortcode provided. Give me a few days time. If you have some specific fields in mind and need urgently, let me know and I can make the required change and email you the modified files.

    For now, to add fields or to remove fields like phone or subject, you will need to make some HTML code changes to the file contact-shortcodes.php in <wordpress install directory>\wp-content\themes\enticing\framework\shortcodes\ directory to take care of this. The bottom portion of this file contains the HTML code for contact form.

    <p>
    <label>Name *</label>
    <input type="text" name="contact_name" class="text-input" />
    </p>
    <p>
    <label>Email *</label>
    <input name="contact_email" class="text-input" type="email"/>
    </p>
    <p>
    <label>Web URL </label>
    <input type="url" name="contact_url" class="text-input"/>
    </p>
    <p>
    <label>Comment *</label>
    <textarea name="message" rows="8" cols="40"></textarea>
    </p>

    As an example of removing a field, to get rid of Web URL, pls remove the following code in line numbers 31 to 34 –

    <p>
    <label>Web URL </label>
    <input type="url" name="contact_url" class="text-input"/>
    </p>

    In order to obtain the new field values and process them, pls modify the file <wordpress install directory>\wp-content\themes\enticing\scripts\sendmail.php The php code in this file is simple enough to modify to help capture values for the new fields.

    Thanks and let us know if you have more questions.

    #252
    livemesh
    Keymaster

    I would also consider using the following plugin if I would need lots of tweaks to the contact form –

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Enticing Theme Support’ is closed to new topics and replies.