Empty p-tags around gutenberg blocks
-
The plugin creates empty p-tags before and after gutenberg blocks.
I created a block containing only the word “test” on a sample page. Without this plugin active it gives me this:
<div class=”gridContainer”>
::before
<p>test</p>
::after
</div>But with Materialis companion active it gives me this:
<div class=”gridContainer”>
::before
<p></p>
<p>test</p>
<p></p>
::after
</div>It screws up my entire design.
I could do some CSS-hacks and set the margin to 0 on these blocks, or delete them using jQuery – but they shouldn’t be there in the first place.Seems to be loaded using “the_content()” in materialis\template-parts\content-page.php
No, my site isn’t published yet. Yes, I could publish it if you’re not able to re-create the problem.
- The topic ‘Empty p-tags around gutenberg blocks’ is closed to new replies.