Making WordPress.org


Ignore:
Timestamp:
02/03/2015 07:06:46 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Add a secondary menu in the headline.

This will be the home for links to the commercial themes page and the theme
uploader. It'll mostly look like the secondary menus on make blogs, with some
added hover styles and responsiveness.

File:
1 edited

Legend:

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

    r1084 r1211  
    1414    <div class="wrapper">
    1515        <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
     16        <nav id="site-navigation" class="main-navigation" role="navigation">
     17            <?php
     18                wp_nav_menu( array(
     19                    'theme_location' => 'primary',
     20                    'container'      => false,
     21                    'depth'          => 1,
     22                ) );
     23            ?>
     24        </nav>
    1625    </div>
    1726</div>
Note: See TracChangeset for help on using the changeset viewer.