added top level menu item with styling
This commit is contained in:
@ -59,6 +59,7 @@ function twentyten_setup() {
|
|||||||
|
|
||||||
// This theme uses wp_nav_menu() in one locations.
|
// This theme uses wp_nav_menu() in one locations.
|
||||||
register_nav_menus( array(
|
register_nav_menus( array(
|
||||||
|
'header-menu' => __( 'Header Menu', 'twentyten'),
|
||||||
'primary' => __( 'Footer Navigation Menu', 'twentyten' )
|
'primary' => __( 'Footer Navigation Menu', 'twentyten' )
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||||
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
WebFontConfig = {
|
WebFontConfig = {
|
||||||
custom: { families: ['OFLSortsMillGoudyRegular', 'OFLSortsMillGoudyItalic'],
|
custom: { families: ['OFLSortsMillGoudyRegular', 'OFLSortsMillGoudyItalic'],
|
||||||
@ -62,14 +61,15 @@
|
|||||||
|
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
|
||||||
|
<?php wp_nav_menu( array( 'container_class' => 'melville_menu', 'theme_location' => 'header-menu' ) ); ?>
|
||||||
|
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
|
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
|
||||||
<<?php echo $heading_tag; ?> id="site-title">
|
<<?php echo $heading_tag; ?> id="site-title">
|
||||||
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
|
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
|
||||||
</<?php echo $heading_tag; ?>>
|
</<?php echo $heading_tag; ?>>
|
||||||
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
|
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
|
||||||
|
|
||||||
|
|
||||||
</div><!--#header-->
|
</div><!--#header-->
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
18
style.css
18
style.css
@ -610,4 +610,22 @@ span.older-posts a, span.newer-posts a{
|
|||||||
/* @end */
|
/* @end */
|
||||||
|
|
||||||
/* @group Footer */
|
/* @group Footer */
|
||||||
|
|
||||||
|
.push, #footer {
|
||||||
|
height: 40px;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#footer {
|
||||||
|
width: 810px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px 0 0 0;
|
||||||
|
background-color: #fafafa;
|
||||||
|
border-top: 1px solid #dddddd;
|
||||||
|
border-right: 1px solid #cccccc;
|
||||||
|
border-left: 1px solid #cccccc;
|
||||||
|
-moz-box-shadow: 1px 4 20px #dddddd;
|
||||||
|
-webkit-box-shadow: 1px 4 20px #dddddd;
|
||||||
|
box-shadow: 1px 4 20px #dddddd;
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user