Scenario: It can be possible with multiple language website. When you have a menu in one language but not in another.
Solution to it is very simple. Hide it using JQuery
1 2 3 4 5 |
jQuery(".widget_nav_menu").each(function() { if(jQuery(this).children('div').length==0){ jQuery(this).hide(); } }); |