Skip to content

Instantly share code, notes, and snippets.

@sevenspark
Created December 8, 2013 15:16
Show Gist options
  • Save sevenspark/efbbdacfac58721eb1f3 to your computer and use it in GitHub Desktop.
Save sevenspark/efbbdacfac58721eb1f3 to your computer and use it in GitHub Desktop.
Newspaper theme mobile menu for UberMenu
<div id="td-mobile-nav">
<!-- mobile menu close -->
<div class="td-mobile-close">
<a href="#"><?php _etd('CLOSE'); ?></a>
<div class="td-nav-triangle"></div>
</div>
<div class="td-mobile-content">
<?php
wp_nav_menu(array(
//'theme_location' => 'header-menu',
'theme_location' => 'mobile-menu',
'menu_class'=> '',
'fallback_cb' => 'td_wp_no_mobile_menu'
));
//if no menu
function td_wp_no_mobile_menu() {
//this is the default menu
echo '<ul class="">';
echo '<li class="menu-item-first"><a href="' . home_url() . '/wp-admin/nav-menus.php">Click here - to use the wp menu builder</a></li>';
//wp_list_pages('sort_column=menu_order&title_li=');
echo '</ul>';
}
?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment