Make WordPress Core


Ignore:
Timestamp:
08/02/2012 07:12:11 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Twelve: CSS and markup improvements for better child theme support, part 3. See #21379.

  • Add classes like .site and .site-content in addition to the set of IDs already present, making things much better for child themes to have more than one generic element like nav inside the content container.
  • Bump JS version after selector change.
  • Move image-attachment to post_class() output

More exhaustive notes in the ticket on each id and class change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/comments.php

    r21261 r21404  
    2222            return;
    2323?>
    24     <div id="comments">
     24<div id="comments" class="comments-area">
    2525
    2626    <?php // You can start editing here -- including this comment! ?>
    2727
    2828    <?php if ( have_comments() ) : ?>
    29         <h2 id="comments-title">
     29        <h2 class="comments-title">
    3030            <?php
    3131                printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
     
    3939
    4040        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    41         <nav id="comment-nav-below" role="navigation">
     41        <nav id="comment-nav-below" class="navigation" role="navigation">
    4242            <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    4343            <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
     
    5454    <?php comment_form(); ?>
    5555
    56 </div><!-- #comments -->
     56</div><!-- #comments .comments-area -->
Note: See TracChangeset for help on using the changeset viewer.