You can hook the_content
filter.
paste below code in functions.php
:
<?php
add_action('the_content','ravs_content_div');
function ravs_content_div( $content ){
return '<div class="entry-content">'.$content.'</div>';
}
?>
After paste this code in functions.php
, the_content()
print post/page content after wrap content in div
with class entry-content
.