Custom HTML getting mangled
-
Hi there, I am new to WordPress and I am trying to add a custom <div> to a post. I am using a custom HTML block and trying to add the following (from code editor view):
<!-- wp:paragraph --> <p>bleh</p> <!-- /wp:paragraph --> <!-- wp:html --> <div class="foo" foodata="mydata">why</div> <!-- /wp:html -->
and the rendered page ultimately has the following in it:
<div class="entry-content"> <p>bleh why</p> </div>
What is likely to be responsible for mangling my custom HTML and how do I make it stop?
FWIW, I am using the Twenty Twenty-One theme with no changes, and I installed a few plugins that I have since deactivated/uninstalled in the hopes that this would help me understand the problem (it didn’t). My server is running WordPress 5.8.2.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom HTML getting mangled’ is closed to new replies.