• Resolved gilgimech

    (@gilgimech)


    My Contact Form 7 is adding an extra p tag so it’s causing a validation error.

    This is the code I have in the admin panel.
    <p class="subject"><label>Subject *</label><span class="select-shadow clearfix"> [select* subject "General Inquiry" "Problems with the Site" "Support"]</span></p>

    This is what’s being outputted.

    <p class="subject"><label for="subject">Subject *</label><span class="select-shadow clearfix"> <span class="wpcf7-form-control-wrap subject"><br />
    <select name="subject" class="wpcf7-form-control  wpcf7-select wpcf7-validates-as-required">
    <option value="General Inquiry">General Inquiry</option>
    <option value="Problems with the Site">Problems with the Site</option>
    <option value="Support">Support</option>
    </select>
    <p></span></span></p>

    You see, on that last line there’s a stray open p tag.

    does anyone know how I can fix this?

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • <p class="subject">
    <label for="subject">Subject *</label>
    <span class="select-shadow clearfix">
    <span class="wpcf7-form-control-wrap subject"><br />
    <select name="subject" class="wpcf7-form-control  wpcf7-select wpcf7-validates-as-required">
    <option value="General Inquiry">General Inquiry</option>
    <option value="Problems with the Site">Problems with the Site</option>
    <option value="Support">Support</option>
    </select>
    </span></span>
    <p></p>

    use this way u r not intigrate spam in <p> tag
    it not possible

    Thread Starter gilgimech

    (@gilgimech)

    No that’s not it.

    The way it’s being outputted is

    <p>
    <lable></lable>
    <span>
    <span>
    <select></select>
    <p>
    </span>
    </span>
    </p>

    the way it should be outputted is

    <p>
    <lable></lable>
    <span>
    <span>
    <select></select>
    </span>
    </span>
    </p>

    for some reason an extra <p> is being generated.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    It’s a theme issue. Try switching to the default theme.

    Thread Starter gilgimech

    (@gilgimech)

    Yeah, it renders correctly on the default theme, but I have no idea where the <p> is coming from. There’s nothing in my theme that should be making it.

    this is the code on the page.php file.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    `
    I just don’t see what can be causing it.

    this way how i understand if possible them give live project link.

    Thread Starter gilgimech

    (@gilgimech)

    Here you go
    Inner Mind Labs

    http://innermindlabs.com/wp-content/themes/iml/style.css?1335292097

    line:1064
    change this code.

    div#page.container div.wrapper div#main-col.contact div.wpcf7 form.wpcf7-form p.subject span.select-shadow span select {
        border: medium none;
        height: 27px;
        left: 3px;
        outline: medium none;
        padding-left: 10px;
        position: relative;
        top: 3px;
        width: 195px;
    }

    now check if any problem is ther or not.
    give me a reply if is is work or not

    Thread Starter gilgimech

    (@gilgimech)

    That didn’t make any difference. I’m pretty sure it’s not the CSS. I’m thinking it might be a plugin.

    Did you sort this, gilgimech? I am having the same problem..

    Thread Starter gilgimech

    (@gilgimech)

    Yeah, I had to go into the plugin and remove them there. It’s in each of the files in the modules folder.

    Look for $html variables. That’s where I edited it.

    If you’re not comfortable with PHP I don’t recommend editing the files.

    That is pretty annoying, considering they’ll just respawn when the plugin updates!

    I’ve used this plugin on dozens of sites without any markup problems. It’s definitely a theme issue.

    It’s only a problem on one page, and I can’t see what could be causing it at all – but the weirdness in the validation is causing ie7 and 8 ajax validation to fall over. But, only on that one page…

    Thread Starter gilgimech

    (@gilgimech)

    Yeah, the more I use this plugin the less I like it. I plan on switching to Gravity Forms in the near future.

    I did switch to gravity forms, then my client hired some idiots while I was ill that replaced it with contact form 7!! I am not happy!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: Contact Form 7] Plugin adding an extra p tag’ is closed to new replies.