WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Stripping <p> Elements from Posts (4 posts)

  1. cregy
    Member
    Posted 6 years ago #

    Hi

    I have a <p> element in a post that is causing non-validation and also problems with the site.
    Rhubarb Interiors
    Any ideas how we strip the <p> element please?

    Thanks

    Rich

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    The P is not your problem, the problem is that you have a DIV with all that sidebar stuff in the post content itself. That's not supposed to be there, is it? Because it doesn't make any sense there.

  3. cregy
    Member
    Posted 6 years ago #

    I found an explanation to the long lines that were happening on my site:
    Pre tags.

    No answer to stripping the p tag yet though.

    Thanks

    Rich

  4. cregy
    Member
    Posted 6 years ago #

    Thanks Otto42 for the reply. I know it makes no sense but it is how the plugin works. I'll try to edit the file directly and remove it.

    Thanks

    Rich

Topic Closed

This topic has been closed to new replies.

About this Topic