Skip to content

Commit

Permalink
Añade menú órbita al header.
Browse files Browse the repository at this point in the history
  • Loading branch information
numeroteca committed May 21, 2015
1 parent 9bed2e6 commit 15cd53c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
10 changes: 10 additions & 0 deletions functions.php
Expand Up @@ -562,3 +562,13 @@ function wikitoki_get_wysiwyg_output( $meta_key, $post_id = 0 ) {

return $content;
}

//Adds Orbita menu
function register_my_menus() {
register_nav_menus(
array(
'orbita' => 'Orbita',
)
);
}
add_action( 'init', 'register_my_menus' );
11 changes: 10 additions & 1 deletion header.php
Expand Up @@ -120,7 +120,7 @@
<?php
if( '' != spacious_header_title() ) {
?>
<h1 class="header-post-title-class"><?php echo spacious_header_title(); ?></h1>
<h1 class="header-post-title-class"><?php the_title(); ?></h1>
<?php
}
?>
Expand All @@ -132,6 +132,15 @@
}
}
?>
<nav id="menu-orbita" class="main-navigation" role="navigation">
<span style="float: left;padding: 16px 0px 0px 20px;font-weight: bold;">&Oacute;rbita: </span>
<?php
$defaults = array(
'theme_location' => 'orbita',
);
wp_nav_menu( $defaults );
?>
</nav>
</header>
<?php do_action( 'spacious_after_header' ); ?>
<?php do_action( 'spacious_before_main' ); ?>
Expand Down
12 changes: 11 additions & 1 deletion style.css
Expand Up @@ -27,7 +27,7 @@ margin:0 0 0 0;

.row {
clear: both;
height:450px;
height:400px;
}
.row:after {
clear: both;
Expand Down Expand Up @@ -74,3 +74,13 @@ margin:0 0 0 0;
.actividad .entry-meta a.read-more {
color: #FFF;
}

/* menu orbita */
#menu-orbita.main-navigation {
background-color: #EEE;
padding: 0 0;
display: block;
width: 100%;
text-align: right;
}

0 comments on commit 15cd53c

Please sign in to comment.