How to hide titles with empty menu in widgets

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

jQuery(".widget_nav_menu").each(function() {
   if(jQuery(this).children('div').length==0){
   jQuery(this).hide();
  }
});

 

Leave a Reply

Your email address will not be published. Required fields are marked *