WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. redbirdo
    Member
    Posted 3 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]
    [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"]
    [/contact-form]

    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?

    Thanks

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

  2. redbirdo
    Member
    Posted 3 years ago #

    That was a break tag btw - it got rendered!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic