Tagged: Code block, paragraph
Hi guys,
This: https://i.imgur.com/wPZQbzV.png, translates into this: https://i.imgur.com/CewBUzH.png
As you can see, the <p>
tags disappear when viewed on the browser. Moreover, if one saves the page when editing, opening the Code block after the page has reloaded will show that the <p> have disappeared.
Is this a bug?
put this to your child-theme functions.php:
remove_filter('the_content', 'wpautop' );
remove_filter('the_excerpt', 'wpautop' );
refresh merging and delete all cachings if used.
Hi there,
Just put it and still not working. The <p> are still being removed :-(
on that page – have you inserted the p-tags again. – this code does not bring back removed p-tags.
Yes, I insert them but they keep disappearing, even from the editor. So this is what I do:
:-(
Hi,
Thank you for the update.
Try to apply a class attribute to the paragraph tags. Example:
<p class="dont-remove-me">An awesome text here.</p>
Best regards,
Ismael
That works, thank you!