• We were having some issues with inline javascript, so we decided it would be wise to modify the add-filters file by commenting out the line associated with wpautop and the_content. After uncommenting the line, it seems that some of the pages don’t want to revert to having paragraphs (generally the index pages). Any ideas as to how this problem can be worked around?

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    DON’T EDIT CORE FILES!!!!

    Seriously, you will hate it when you upgrade and have to manually make that change again.

    If you want to disable that filter, the best way is to add this to your functions.php file in your theme:
    remove_filter('the_content', 'wpautop');

    Okay, now that we have that settled.

    it seems that some of the pages don’t want to revert to having paragraphs (generally the index pages). Any ideas as to how this problem can be worked around?

    That would be because AutoP adds in BRs and Ps to your posts. Turning it off turns it off. (Also in breaking news: long cat is long). To ‘fix’ it you should add <p> tags to your posts manually. But that’s the fix.

Viewing 1 replies (of 1 total)
  • The topic ‘Add wpautop after Commenting it Out’ is closed to new replies.