Make WordPress Core


Ignore:
Timestamp:
08/02/2012 07:12:11 PM (14 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/single.php

    r21261 r21404  
    1010get_header(); ?>
    1111
    12     <div id="primary">
     12    <div id="primary" class="site-content">
    1313        <div id="content" role="main">
    1414
     
    1717                <?php get_template_part( 'content', get_post_format() ); ?>
    1818
    19                 <nav id="nav-single">
     19                <nav class="nav-single">
    2020                    <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    2121                    <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span>', 'twentytwelve' ) . ' %title' ); ?></span>
    2222                    <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></span>
    23                 </nav><!-- #nav-single -->
     23                </nav><!-- .nav-single -->
    2424
    2525                <?php
     
    3232
    3333        </div><!-- #content -->
    34     </div><!-- #primary -->
     34    </div><!-- #primary .site-content -->
    3535
    3636<?php get_sidebar(); ?>
Note: See TracChangeset for help on using the changeset viewer.