Changing the HTML Of the content
The wrapping <p> is applied by a filter called wpautop. You can disable this filter and wrap the content in your desired wrapper, but it’s not really recommended. remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); Now you can wrap your content in a DIV for example: <div><?php the_content(); ?></div> But notice that this filter … Read more