Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix I would like to remove wpautop from wordpress

Discussion in 'Misc WordPress Requests' started by Centopino, Nov 26, 2017.

  1. Centopino

    Guest

    I would like to remove wpautop from wordpress, by Centopino

    I try to add

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    in the line 439 and 440 on wp-includes/formatting.php but it does not work.
    I would like to validate in html the site and it seems that wordpress add some </ p> which should not add and then I retrieve pages with 4 to 10 errors.
    I’ve read that the function of adding <p> </ p> <br> in car is called wpautop.
    Thank you.

    I would like to remove wpautop from wordpress
     
    #1

Share This Page

Web Hosting