Contact Form Shortcode

  • Unknown's avatar

    Hi, can I alter this [contact-form to='(email visible only to moderators and staff)' subject='Delivery'][contact-field label='Your Name' type='name' required='1'/][contact-field label='Your Phone Number' type='text' required='1'/][contact-field label='Your Email' type='email'/][contact-field label='Deliver To' type='textarea' required='1'/][contact-field label='Phone Number of Recipient' type='text' required='1'/][contact-field label='Deliver Date' type='text' required='1'/][contact-field label='Enclosure Card Message' type='textarea' required='1'/][contact-field label='What would you like to spend?' type='text'/][/contact-form] to have subtext? If so, can you show me how?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    ozarkage: what do you mean by subtext?

  • Unknown's avatar

    If you want to add more information about a particular field, you can add the text in between the contact fields (which are all inside [brackets]). For instance:


    [contact-form to='(email visible only to moderators and staff)' subject='Delivery'][contact-field label='Your Name' type='name' required='1'/][contact-field label='Your Phone Number' type='text' required='1'/]Must be a US phone number. [contact-field label='Your Email' type='email'/] We'll never sell your email. [contact-field label='Deliver To' type='textarea' required='1'/][contact-field label='Phone Number of Recipient' type='text' required='1'/][contact-field label='Deliver Date' type='text' required='1'/][contact-field label='Enclosure Card Message' type='textarea' required='1'/][contact-field label='What would you like to spend?' type='text'/][/contact-form]

  • Unknown's avatar

    Edit: added emphasis to make it easier to understand:

    [contact-form to='(email visible only to moderators and staff)' subject='Delivery'][contact-field label='Your Name' type='name' required='1'/][contact-field label='Your Phone Number' type='text' required='1'/]Must be a US phone number. [contact-field label='Your Email' type='email'/] We'll never sell your email. [contact-field label='Deliver To' type='textarea' required='1'/][contact-field label='Phone Number of Recipient' type='text' required='1'/][contact-field label='Deliver Date' type='text' required='1'/][contact-field label='Enclosure Card Message' type='textarea' required='1'/][contact-field label='What would you like to spend?' type='text'/][/contact-form]

  • Unknown's avatar

    And of course, that doesn’t work inside a code block. You should be able to see where the text has been added, though.

  • Unknown's avatar

    What if I want the text to be above the the text area? Is there another method that would allow for this?

    Also is there a way to change the size or the number of the text area?

  • The topic ‘Contact Form Shortcode’ is closed to new replies.