Unexpected result with shortcode in template parts
-
Hi,
If you try to insert a form shortcode in a template part, the plugin outputs a unexpected very visible empty
<p>
.This breaks the intended visual output, as the
<p>
is about 700px height, can’t be edited or deleted by the end user.
Step to reproduce :- Launch a WordPress installation with a block theme
- Enter a template part
- Add a Brevo shortcode (e.g
[sibwp_form id=2]
) - Check front end to see a
<p>
before the actual form :
<p> <input type="hidden" name="sib_form_action" value="subscribe_form_submit"><br> <input type="hidden" name="sib_form_id" value="1"><br> <input type="hidden" name="sib_form_alert_notice" value="Please fill out this field"><br> <input type="hidden" name="sib_form_invalid_email_notice" value="Your email address is invalid"><br> <input type="hidden" name="sib_security" value="5e96bf1694"></p>
I’ve tested this on a blank 6.2.2 WordPress with only the Brevo plugin (3.1.67) installed and Twenty Twenty-Three (1.1). The issue also occurred on another WordPress, with another block theme.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Unexpected result with shortcode in template parts’ is closed to new replies.