Home › Forums › Support › Different headers with menu under picture › Reply To: Different headers with menu under picture
November 20, 2016 at 3:55 pm
#246118
Edwin
Hi Tom
I am showing another slider in a different page and all working fine, but menu is showing in the top above the slider.
I tried this and working:
Function.php:
function print_menu_shortcode($atts, $content = null) {
extract(shortcode_atts(array( ‘name’ => null, ‘class’ => null ), $atts));
return wp_nav_menu( array( ‘menu’ => $name, ‘menu_class’ => $class, ‘echo’ => false ) );
}
add_shortcode(‘menu’, ‘print_menu_shortcode’);
Short-code inside the page with the menu styles:
[masterslider id=”2″]
<ul id=”menu-menu” class=” menu sf-menu”>
[menu name=”menu” class=”main-navigation ul”]
[menu name=”menu” class=”main-navigation ul”]
Would you able to give me the correct Menu styles?
Thanks
Edwin