Archived
Adds secondary menu
This commit is contained in:
1 parent
d0be81ba78
commit
39daad3b70
3 files changed
+36
-3
No files matched your search
@@ -20,8 +20,11 @@ add_image_size( 'newsletter-third' , 213 , 126, true);
|
||||
*/
|
||||
function neuf_register_nav_menus() {
|
||||
register_nav_menus(
|
||||
array( 'main-menu' => __( 'Hovedmeny' ) )
|
||||
);
|
||||
array(
|
||||
'main-menu' => __( 'Hovedmeny' ),
|
||||
'secondary-menu' => __( 'Sekundærmeny' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'init' , 'neuf_register_nav_menus' );
|
||||
|
||||
|
||||
@@ -27,3 +27,9 @@
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => 'false' ) ); ?>
|
||||
|
||||
</nav> <!-- #menu -->
|
||||
|
||||
<nav id="secondary-menu">
|
||||
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => 'false' ) ); ?>
|
||||
|
||||
</nav> <!-- #secondary-menu -->
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Theme Name: Neuf Old Style
|
||||
* Theme URI: http://git.neuf.no/?p=neuf-web.git;a=summary
|
||||
* Theme URI: http://git.neuf.no/?p=neuf-web.git
|
||||
* Description: Horisontal outline.
|
||||
* Author: Just Thomas Misund,Robert Kolner,Nikolai Kristiansen
|
||||
* Author URI: http://edb.neuf.no
|
||||
@@ -186,6 +186,30 @@ header#site-header .site-title a {
|
||||
#menu .aapningstider #bokkafeen_tider a {
|
||||
padding: 0px;
|
||||
}
|
||||
/* Secondary menu*/
|
||||
#secondary-menu {
|
||||
/* good friends with #main-menu */
|
||||
position: relative;
|
||||
top: -75px;
|
||||
float: right;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#secondary-menu ul {
|
||||
display: inline;
|
||||
list-style: none;
|
||||
}
|
||||
#secondary-menu li {
|
||||
display: inherit;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
#secondary-menu li:first-child {
|
||||
padding-right: 4px;
|
||||
border-right: 1px solid white;
|
||||
}
|
||||
#secondary-menu a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Header slutt */
|
||||
|
||||
|
||||
Reference in new issue
Block a user