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/header.php

    r21276 r21404  
    2424
    2525<body <?php body_class(); ?>>
    26 <div id="page" class="hfeed">
     26<div id="page" class="hfeed site">
    2727    <header id="masthead" class="site-header" role="banner">
    2828        <hgroup>
     
    3131        </hgroup>
    3232
    33         <nav class="site-navigation main-navigation" role="navigation">
     33        <nav class="main-navigation" role="navigation">
    3434            <h3 class="assistive-text"><?php _e( 'Show navigation', 'twentytwelve' ); ?></h3>
    3535            <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
     
    4343    </header><!-- #masthead -->
    4444
    45     <div id="main">
     45    <div id="main" class="wrapper">
Note: See TracChangeset for help on using the changeset viewer.