Skip to content

Commit

Permalink
Improved main menu items. Fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeler authored and crazyserver committed Feb 19, 2016
1 parent 454100d commit ea2820a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Expand Up @@ -48,7 +48,9 @@ function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
$attributes .= ' class="menu-link ' . ( $depth > 0 ? 'sub-menu-link' : 'main-menu-link' ) . '"';
$attributes .= ' class="menu-link ';
$attributes .= ($item->url=='#' ? 'no-link ' : '');
$attributes .= ($depth > 0 ? 'sub-menu-link' : 'main-menu-link') . '"';

$item_output = sprintf( '%1$s<a%2$s>%3$s%4$s%5$s</a>%6$s',
$args->before,
Expand Down
1 change: 0 additions & 1 deletion wp-content/themes/reactor-primaria-1/functions.php
Expand Up @@ -771,4 +771,3 @@ function setTarget($link){
return "";
}


5 changes: 5 additions & 0 deletions wp-content/themes/reactor-primaria-1/style.css
Expand Up @@ -42,6 +42,11 @@ a:hover{
text-decoration: underline;
}

a.no-link:hover{
text-decoration: none;
cursor:default;
}

h1 {
font-size:2em;
}
Expand Down

0 comments on commit ea2820a

Please sign in to comment.