Forums

Remove <p> tag from pages (2 posts)

  1. matthewpaul
    Member
    Posted 3 years ago #

    Is it possible to remove the <p> tag that WordPress generates around text and images when creating pages?

    I commented out this line in default-filters.php:
    // add_filter('the_excerpt', 'wpautop');

    However, that removes the <p> tag from all my posts, as well as pages. I want to remove the <p> tag from pages only, not posts. I'm using the HTML view. Help is appreciated.

  2. KingScooty
    Member
    Posted 2 years ago #

    Just found this post now. I'm looking for exactly the same solution.
    Are there any methods to accomplish this?

Topic Closed

This topic has been closed to new replies.

About this Topic