Full screen nav menu block with avada theme

Select the Full Width Mega Menu on/off selector in Avada settings. Here’s the steps to follow covered on that url: How To Set The Mega Menu To Full Width Step 1 – Go to WP Dashboard > Appearance > Menus, locate the first level menu item and click the Avada Options button. Step 2 – … Read more

Creating menu always gives error A name is required for this term

I got the same issue and found that the plugin user-activity-log was at the origin of the problem. As I reported here,the problem is related to the hooks: ual_shook_created_term ual_shook_edited_term ual_shook_delete_term They return nothing instead of the given term when the taxonomy is ‘nav_menu’. If you don’t use this plugin, check the others plugins that … Read more

Page appears after de registering from menu

This is controlled by the wp_nav_menu argument fallback_cb, which is the wp_page_menu function by default. Set it to false to show nothing in the case a menu isn’t assigned. wp_nav_menu( array( ‘theme_location’ => ‘footer-menu’, ‘menu_class’ => ‘footer-links-menu’, ‘fallback_cb’ => false, ) );

How to get the name of the homepage’s menu?

You can use get_nav_menu_locations() to get an array of locations that are being used (a menu has been assigned to it), it shows like this: Array ( [header-menu] => 4 [extra-menu] => 6 ) the 4 and 6 are the menu IDs, i think you already have an ID so this should be enough, now … Read more

Corrupted nav-menu?

Sounds like you deleted some terms and/or taxonomies related to menus. You need to get those back into the database. Easiest solution is if you took a database backup before removing those terms, as is best practice, just restore your database. Or if the host provides automated backups, use one of those. If you don’t … Read more

Hoverable menu to appear in different sections of page

Bradley, Thank you for the additional clarification in the comments. I have written some javascript (jQuery) that you’ll need to insert into your theme: jQuery( “#panel-2-1-0-0” ).hover( //Print and Document function() { jQuery(‘#mega-menu-item-475’).addClass(‘mega-toggle-on’); }, function() { jQuery(‘#mega-menu-item-475’).removeClass(‘mega-toggle-on’); } ); jQuery( “#panel-2-1-1-0” ).hover( //Telecom function() { jQuery(‘#mega-menu-item-477’).addClass(‘mega-toggle-on’); }, function() { jQuery(‘#mega-menu-item-477’).removeClass(‘mega-toggle-on’); } ); jQuery( “#panel-2-1-0-1” ).hover( … Read more

Tageting a specific menu link with nav_menu_css_class

An easier way to go about this: in menu administration, add your custom class directly to the menu item. To enable this, go to Screen Options at the top of the menu editing screen and check the “CSS Classes” box under “Show advanced menu properties.” Once you check that box, you’ll have a new “CSS … Read more

Add scheduled page or post in the menu section on back-end

You can add the future pages with the filter nav_menu_items_page Notes: You can do the same with the posts or other cpt by changing the post type in the hook nav_menu_items_{$post_type} This filter is for the View All tab in the pages. Example: function add_scheduled_pages($posts, $args, $post_type) { $query = new WP_Query( array( ‘post_type’ => … Read more