0

I'm creating one wordpress template. Required information added in wordpress header.php, footer.php and everything was fine. Then i added one page. But while viewing the page there was a small problem just above the footer. After checking i found following code creating all the problems

<br class="clear">

But i didn't added that in page content. Somebody please tell me from where this thing came, and how to remove this?

1
  • 1
    WordPress doesn't add this, it'll be added by a plugin or your theme, I don't believe we can tell you where it came from without a full copy of the code of your site which would be impractical. You will need to search your codebase for that tag
    – Tom J Nowell
    Feb 27, 2020 at 17:54

2 Answers 2

0

I afraid that added by some custom function or JavaScript because WordPress never add that tag by default. So use CSS to hide that element if you don't find that script

-1

at your theme functions add this line: remove_filter('the_content', 'wpautop');

3
  • @Eduart- That line already present, but still i'm getting the problem.
    – programmer
    Jul 11, 2015 at 19:47
  • @programmer Can I have a link to check if it is online? Is it just under the_content? Or if you are using the_content in your theme can you try to use get_the_content instead
    – emilushi
    Jul 11, 2015 at 20:33
  • 1
    wpautop turns lines into paragraphs, it doesn't add br tags with clear classes
    – Tom J Nowell
    Feb 27, 2020 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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