josua118 Posted September 20, 2018 Share Posted September 20, 2018 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. Link to comment Share on other sites More sharing options...
louisstephens Posted September 20, 2018 Share Posted September 20, 2018 Hey josua118, and welcome to the forums! Quick question for you, how are you rendering the field on the frontend? 1 Link to comment Share on other sites More sharing options...
szabesz Posted September 20, 2018 Share Posted September 20, 2018 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now