Adding <p> tags in rich text editor

Hi,

When I use the headline element, if I go into the rich text editor, it automatically adds <p> tags around the text. I don’t want this to happen - it’s a headline (which is why I choose the Headline element rather than the Text element) and I want to style headlines differently. I realise I can easily fix this myself by deleting the tags using the plain text/code editor, but when I hand over to my client and allow them to edit, they will find this too complex. Why is it adding <p> tags to a headline and how can i make it stop?

Thanks.

Hi There,

Unfortunately, you can remove the p tags for specific elements.

But you can force to remove all the p tag styling of your headline element by adding this custom CSS under Theme Options > CSS:

.x-text-headline p {
    margin: 0 !important;
}

Hope it helps :slight_smile:

Perfect, thank you!

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.