WordPress.org

Making WordPress.org

Changeset 8


Ignore:
Timestamp:
05/20/2013 07:43:47 AM (8 years ago)
Author:
nacin
Message:

WP.org P2 child theme: Add a navigation menu to the <h2 id="headline"> (like "Make WordPress Core").

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/header.php

    r7 r8  
    77        <div class="wrapper">
    88                <h2><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h2>
    9         </div>
     9                <?php wp_nav_menu( array( 'theme_location' => 'wporg_header_subsite_nav', 'fallback_cb' => '__return_false' ) ); ?>
     10        </div>
    1011</div>
    1112
    1213<div id="header2">
    1314<?php do_action( 'before' ); ?>
    14 <!--
    15     <div class="sleeve">
    16         <h1><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    17         <?php if ( get_bloginfo( 'description' ) ) : ?>
    18             <small><?php bloginfo( 'description' ); ?></small>
    19         <?php endif; ?>
    20         <a class="secondary" href="<?php echo home_url( '/' ); ?>"></a>
    21 
    22         <?php if ( current_user_can( 'publish_posts' ) ) : ?>
    23             <a href="" id="mobile-post-button" style="display: none;"><?php _e( 'Post', 'p2' ) ?></a>
    24         <?php endif; ?>
    25     </div>
    26 -->
    2715    <?php if ( has_nav_menu( 'primary' ) ) : ?>
    2816    <div role="navigation" class="site-navigation main-navigation">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r7 r8  
    6868ul#menu-table-of-contents li ul a {
    6969    font-weight: normal;
     70}
     71
     72#headline .menu {
     73    list-style: none;
     74    float: right;
     75    font-size: 14px;
     76    font-weight: bold;
     77    padding-top: 22px;
     78    margin-right: 15px;
     79}
     80
     81#headline .menu li {
     82    display: inline;
     83    padding-left: 20px;
    7084}
    7185
Note: See TracChangeset for help on using the changeset viewer.