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

 
swetanka replied on at Permalink Reply
I am buliding a site for the social work so every page contain multiple block Specially
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.
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi swetanka,

Is there a reason you are using div tags instead of tags?
swetanka replied on at Permalink Reply
Content editor is generating auto <p> tags. Is there a way to disable it.
gogocat replied on at Permalink Reply
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!
goodnightfirefly replied on at Permalink Reply
goodnightfirefly
Use the HTML block instead, the Content block is more for things like articles.