WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I create a new page and put <br class="clear"> into the HTML view it gets rendered as

  <br class="clear">

This causes problems with the theme http://www.gallyapp.com/tf_themes/?theme=Lotus where the <br> is not wrapped.

How can remove the wrapping?

share|improve this question
There's already a few solutions to this problem in this thread. – Jono Warren Oct 5 '11 at 9:13
Does using <div class="clear"></div> solve the problem? I think using a div will work around the issue. – t31os Oct 6 '11 at 13:07
up vote 0 down vote accepted

Use shortcode instead of <br class="clear">

share|improve this answer
Thanks, is there a particular shortcode you had in mind? Or do you mean I should create my own shortcode with <br class="clear"> as content? – Cilvic Oct 5 '11 at 13:10
@Civic, I mean create your own. Another solution is to filter the content It's even more easier. – Alexey Oct 5 '11 at 13:34

you can strip all the filters by calling get_the_content() instead of the_content()

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.