Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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!

share|improve this question
    
I guess it would depend on what CSS is declared for that class, and if you plan on using it for your theme. –  Pat Mar 21 '13 at 14:56

1 Answer 1

up vote 1 down vote accepted

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();
}
share|improve this answer
    
Shaboom. Thanks! Yeah, I kinda figured, but I just wanted to make sure that I was keeping things consistent and semantic. But that puts it into perspective. Thanks again! –  ultraloveninja Mar 21 '13 at 16:30
    
@ultraloveninja See my Mini Theme for a complete example. :) –  toscho Mar 21 '13 at 16:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.