Jump to content

Recommended Posts

Posted

Hello all, all my body tags with cteditor create one empty paragraph before and one after the content that I have written. So then it looks like:
<p></p>
<p>My actual content</p>
<p></p>

In the field settings I checked the option "removing empty paragraphs" but than doesn't change anything. This Option propably only works for markup you create inside the body field.

Thanks for your help.

Posted
7 hours ago, louisstephens said:

Hey josua118, and welcome to the forums! Quick question for you, how are you rendering the field on the frontend?

@josua118 Shooting in the dark: are you maybe doing something like <p><?php echo $page->body ?></p> ?

You do not have to surround it with a p tag, simply use <?php echo $page->body; ?> instead.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...