Do I really need the div class entry?

I was wondering if it’s really neccessary to keep the <div class="entry"> in the page.php file (or any other template for that matter). I typically use a blank HTML5 wordpress theme and it doesn’t have any declarations within the CSS file for that class.

So I just wanted to get other opinions on it. Thanks!

1 Answer
1

No specific markup is required in a theme. The only exception are themes published on wordpress.org, they have to follow the guidelines. And even there, <div class="entry"> is not required.

The only parts you have to use are these:

while ( have_posts() )
{
    the_post();
    print '<h2>' . get_the_title() . '</h2>';
    the_content();
    wp_link_pages();
}

Leave a Comment