Grunion Contact Form
Extra whitespace with custom fields (2 posts)

  1. redbirdo
    Posted 4 years ago #

    I needed to remove the website field and make the email field not required, so I defined my form like this:

    [contact-form to="myemail@myemail.com"]
    [contact-field label="Name" type="name" required="true"]
    [contact-field label="Email" type="email" required="false"]
    [contact-field label="Message" type="textarea" required="true"]

    This does basically work. However, there is extra whitespace between each of the fields that does not appear with the default form. This doesn't look good. In the page source, there is a
    tag between the div for each field that is not present with the default form. I've trawled the plugin code but with my limited php knowledge can't work out where its coming from.

    Does anyone know where this is coming from and if/how I can get rid of it?



  2. redbirdo
    Posted 4 years ago #

    That was a break tag btw - it got rendered!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Grunion Contact Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic