Subpages menu on sidebar plus widgets

If I’m understainding you correctly, you’ve hardcoded the wp_list_pages() function in to the widgetized area of the theme’s sidebar, and then, when you add a widget using WordPress’ back end Appearance->Widgets then you no longer see the output of the wp_list_pages() function? If that’s the case, then I think we’ve found your problem. If code … Read more

How to keep close a sub-menu under homepage? [closed]

To do that, you have to set hidden attribute to the sub menu. CSS #wrapper .fusion-vertical-menu-widget.left .menu .sub-menu { display: none; } to toggle display on the menu on hover over servizi, you can add jQuery hover to the menu item. jQuery var subMenu = jQuery(“#wrapper .fusion-vertical-menu-widget.left .menu .sub-menu”); jQuery(“#menu-item-12049”).hover(function(){ subMenu.show(); }, function(){ subMenu.hide(); }); … Read more

wp_nav_menu changed to wp_page_menu

Found the answer i’ve added changed the wp_nav_menu args to this: wp_nav_menu(array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ”, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘items_wrap’ => ‘<ul id=”%1$s” … Read more

ID of parent Menu

Ended up using the following <script> $(function(){ var i =0; $(‘ul.sub-menu’).addClass (function(idx) { return “item-” + idx; }); }); </script> It adds a class of item-0, item-1, etc to each sub-menu it finds.