Trying to display the ubermenu only in main nav using shortcode.
authorLaury GvR <laury@gaslightmedia.com>
Fri, 16 Oct 2015 18:42:38 +0000 (14:42 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 16 Oct 2015 18:42:38 +0000 (14:42 -0400)
functions.php
parts/top-bar.php

index 9a1057b..cd6b562 100644 (file)
@@ -118,7 +118,7 @@ function glm_offcanvas_menu()
 {
     echo '<div class="left-off-canvas-list"><ul class="home-off"><li class="page_item"><a href="'.home_url('/').'">Home</a></li></ul>';
     wp_nav_menu(array(
-        'theme_location'  => '',
+        'theme_location'  => 'top-bar',
         'container'       => '',
         'container_class' => '',
         'menu'            => '',
index a95b22d..29427a1 100644 (file)
@@ -1,6 +1,8 @@
 <nav class="top-bar show-for-large-up" data-topbar role="navigation">
     <section class="top-bar-section">
-        <?php ubermenu( 'main' , array( 'theme_location' => 'top-bar' ) ); ?>
+        
+                    <?php echo do_shortcode('[ubermenu config_id="main" theme_location="top-bar"]'); ?>
+        <?php // ubermenu( 'main' , array( 'theme_location' => 'top-bar' ) ); ?>
         <?php // echo emmetcounty_top_bar(); ?>
     </section>
 </nav>