How do I remove a menu from a theme?

In your admin panel, go to Appearance > Menus > Manage Locations There you make sure that none of the theme locations have a menu assigned. Alternatively, you can modify your theme. If you want to do that, search for calls to wp_nav_menu. If you take theme twentyfourteen, you have 2 files: header.php and sidebar.php … Read more

jQuery not working when used with wordpress menu

You are missing <script> tags You are using the wrong jQuery variable name. If you want to use the $ alias you need to use noConflict as helgatheviking suggested or switch to “jQuery” instead of $ You are missing }); at the end of the code you posted above You should consider separating your JS … Read more

Add different span class to wp nav menu

If you want to add different classes to each menu, you can do that by JS. In JS just add a array, where you should save corresponding menu and it’s class. and run a each loop to add classes to menu.

Active menu item / category

Alas, this is a CSS issue, caused by some difference in WP’s classes applied. 🙂 First you are misinterpreting your “test” case 2: Dropdown isn’t highlighted because (despite what post body says) it’s not actually assigned the subcategory. The styling applied is from .current-menu-parent, since post is obviously not a term in taxonomy. In your … Read more

How can I make this custom design menu work in wordpress?

The problem is in your sub-labels below the main text in each item. When building menu, set a custom name to menu item with like this: World News From Around The Globe Another method is to use a megamenu WordPress plugin, which supports two labels.

Menu Structure with Links failure to update

Did you actually create a specific menu and link it to one position you defined in functions.php? Once you do not link it to a position, WordPress grabs all pages and puts it in a menu. You should go like this: 1.) You put something this in the functions.php of your theme in order to … Read more

Remove all nav menu classes except those which begin with certain letters

array_intersect() is not a good choice when you need a partial match. Go through each class, and apply both checks before you remove a class. Example, not tested: function remove_menu_classes( $classes ) { // List of allowed menu classes $allowed = array ( ‘current-menu-item’, ‘current-menu-ancestor’, ‘menu-item-has-children’, ‘current-post-ancestor’, ‘first’, ‘last’, ‘vertical’, ‘horizontal’ ); if ( ! … Read more

Is there any way to recover deleted menu from database sql backup

I’ve resolved the problem with explained here : http://marketermatt.com/export-navigation-menus/ But i would like to warn the people that will try this solution, you have to have a database backup of WordPress system which has Menu that you would like to revert BackUp your WP database to your PC (bacause, you will use this for reverting … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)