• Hi. First of all, great plugin! Saved me a few hours of coding.

    Right now I seem to have a problem with the [cfdb-html] shortcode.

    I’m using it like this:

    [cfdb-html form="Sign the Pledge" show="first-name,country"]{{BEFORE}}<section class="names"><div class="bubble"></div>{{/BEFORE}}${first-name} (${country}), {{AFTER}}</section>{{/AFTER}}[/cfdb-html]

    and it outputs

    <br />
    <section class="names">
    <div class="bubble"></div>
    <p>Name (COUNTRY), </section>
    <p>

    for some reason. Any idea how to fix it?

    Note: I’m using an empty paragraph fix for shortcodes, which is working fine on every other shortcode besides this one.

    https://www.ads-software.com/plugins/contact-form-7-to-database-extension/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter reddo

    (@reddo)

    This form stripped out a <br> and a <p> tag from the title, but you get the idea.

    Plugin Author Michael Simpson

    (@msimpson)

    Try this: add to the short code:
    stripbr="false"

    Thread Starter reddo

    (@reddo)

    Thanks, stripbr="true" worked, it removed the <br>, but the empty <p> is still there after the shortcode.
    This is what’s rendered now:

    <section class="names">
    <div class="bubble"></div>
    <p>Name (Country), </section>
    <p>

    Plugin Author Michael Simpson

    (@msimpson)

    Make sure there are no line breaks in the short code.

    Thread Starter reddo

    (@reddo)

    Just double-checked, no line-breaks at all. This is my exact code: [cfdb-html form="Sign the Pledge" show="first-name,country" stripbr="true"]{{BEFORE}}<section class="names"><div class="bubble"></div>{{/BEFORE}}${first-name} (${country}), {{AFTER}}</section>{{/AFTER}}[/cfdb-html]

    PS: I really appreciate you taking the time to answer me.

    Plugin Author Michael Simpson

    (@msimpson)

    Not sure…
    Use the “Text” not “Visual” editing tab in WordPress editor to see if there are any tag in there. (You are probably doing that already).

    Thread Starter reddo

    (@reddo)

    Yep, I am editing in text mode.

    Thread Starter reddo

    (@reddo)

    Got around this by not using the before and after fields. After removing those the extra <p> dissapeared and I’ve added the wrapper code by hand. Thanks for your time on this though.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘"" before output and "" after’ is closed to new replies.