Random <p> tags

Introduction

In some rare cases you may find that there are stray <p> tags within your content, especially loop layouts. To rectify this, you can add the below lines of code to your functions.php file within a child theme.

remove_filter('the_content', 'wpautop');
remove_filter('the_excerpt', 'wpautop');
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.