Content Editor
Permalink 1 user found helpful
Hello whenever i edit any existing content block the by default <p> tag come ..
i am using latest version i.e 5.7 Please help me in this
i am using latest version i.e 5.7 Please help me in this
Hi swetanka,
Is there a reason you are using div tags instead of tags?
Is there a reason you are using div tags instead of tags?
Content editor is generating auto <p> tags. Is there a way to disable it.
I have the same exactly the same issue.
First time saved content - look ok:
<div class="section-pricing">
<div class="container clearfix section-pricing-inner">
<h2>Pricing</h2>
</div>
</div>
later try edit the content. The html became
<p class="section-pricing">
</p>
<div class="container clearfix section-pricing-inner">
<h2>Pricing</h2>
</div>
</div>
The site now looks broken!
First time saved content - look ok:
<div class="section-pricing">
<div class="container clearfix section-pricing-inner">
<h2>Pricing</h2>
</div>
</div>
later try edit the content. The html became
<p class="section-pricing">
</p>
<div class="container clearfix section-pricing-inner">
<h2>Pricing</h2>
</div>
</div>
The site now looks broken!
Use the HTML block instead, the Content block is more for things like articles.
Content Block so when I re-edit the block it takes p tag that i have set to div So its gets
irritating to desing my site as this version is launched just in this quatr of year .
So, Anyone can help me how to remove p tag from the block by default.