Skip to content
This repository has been archived by the owner. It is now read-only.

Fix mobile megamenu site title url #130

Merged
merged 1 commit into from Dec 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions inc/nav-maxmegamenu.php
@@ -1,16 +1,16 @@
<div id="nav-megamenu">
<div id="megamenu-wrapper">
<nav id="megamenu" class="container">
<h1 class="visible-xs visible-sm" id="megamenu-mobile-title"><a href="<?php the_permalink();?>"><?php bloginfo('name'); ?></a></h1>
<?php
wp_nav_menu(
array(
'menu_class' => '',
'theme_location' => 'primary', /* where in the theme it's assigned */
'container' => false, /* container class */
'fallback_cb' => 'hale_main_nav_fallback',
'items_wrap' => '<ul id="%1$s" class="%2$s maxmegamenu">%3$s</ul>'
)
);

<div id="nav-megamenu">
<div id="megamenu-wrapper">
<nav id="megamenu" class="container">
<h1 class="visible-xs visible-sm" id="megamenu-mobile-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name'); ?></a></h1>
<?php
wp_nav_menu(
array(
'menu_class' => '',
'theme_location' => 'primary', /* where in the theme it's assigned */
'container' => false, /* container class */
'fallback_cb' => 'hale_main_nav_fallback',
'items_wrap' => '<ul id="%1$s" class="%2$s maxmegamenu">%3$s</ul>'
)
);
?> </nav></div></div>