• Hi, thx for the important update 7.5.1 and this change:

    “Fixed: wpcf7_autop() generated unnecessary

    and
    .”

    But in the new update 7.5.1, there is a new p-tag around the checkboxes, so my styles are broken on every client website. Do you can delete the new p tag?

    Now:

    
    

    <span class="wpcf7-form-control-wrap" data-name="checkbox-503"> <span class="wpcf7-form-control wpcf7-checkbox wpcf7-validates-as-required"> ...

    old:

    <span class=”wpcf7-form-control-wrap” data-name=”checkbox-503″> <span class=”wpcf7-form-control wpcf7-checkbox wpcf7-validates-as-required”> …

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you tried adding

    define( 'WPCF7_AUTOP', false );

    to wp-config?

    https://contactform7.com/controlling-behavior-by-setting-constants/

    • This reply was modified 1 year, 11 months ago by konsument.
    • This reply was modified 1 year, 11 months ago by konsument.

    The “autop” filter replaces double line-breaks with paragraph elements.

    Right now paragraph tags are being added even with 1 line break.

    • This reply was modified 1 year, 11 months ago by rinart73.
    Thread Starter janwill

    (@janwill)

    Yes, I try

    define('WPCF7_AUTOP', false);

    But I have to change this in all my projects. Why is the p tag new(?) and please delete these like in old version…

    I have in my forms other coloumns with normal text lines, so this text break down with the define-functions…

    There are man other topics with the same problem. So please, delete the bug and update the plugin…

    • This reply was modified 1 year, 11 months ago by janwill.
    • This reply was modified 1 year, 11 months ago by janwill.
    • This reply was modified 1 year, 11 months ago by janwill.
    Thread Starter janwill

    (@janwill)

    Hi,

    do you have an answer for me (us)?

    <p><span class="wpcf7-form-control-wrap" data-name="checkbox-503"><span class="wpcf7-form-control wpcf7-checkbox wpcf7-validates-as-required"><span class="wpcf7-list-item first last"><label><input type="checkbox" name="checkbox-503[]" value="&nbsp;" tabindex=""><span class="wpcf7-list-item-label">&nbsp;</span></label></span></span></span></p><p>Ich akzeptiere die aktuellen Datenschutzbestimmungen.</p>

    Above is the new code, but on older versiones was it

    <span class="wpcf7-form-control-wrap" data-name="checkbox-503"><span class="wpcf7-form-control wpcf7-checkbox wpcf7-validates-as-required"><span class="wpcf7-list-item first last"><label><input type="checkbox" name="checkbox-503[]" value="&nbsp;" tabindex=""><span class="wpcf7-list-item-label">&nbsp;</span></label></span></span></span>Ich akzeptiere die aktuellen Datenschutzbestimmungen.

    Why do you have change the output? It brokes in every project on my client sites. Please, remove this unnecessary p tag. I hope there is an answer now, the new update has bugs and there isn′t a solution and I can′t fount any solutions.

    This one isn′t a solution. It′s breaks other lines…

    define('WPCF7_AUTOP', false);
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘p tag around checkbox is new’ is closed to new replies.