My Menu Disappears on my Custom Link Homepage on Mobile

The mobile nav menu in your theme appears to be injected via JavaScript. On pages other than the home page the mobile nav does appear. It looks like the home page is the only page throwing JS errors; they appear to be associated with Mailchimp and/or Contact form 7 . Try disabling plugins for both … Read more

Elegant way of adding an CTA to a menu

As posted in StackOverflow by Oliver White: You can add this item as last in your menu, then assign custom class to this item and add required styles (positioning, CTA styles).

Update wordpress menu with woocommerce products

EDIT: I tried the following and it works in the theme “Storefront for woocommerce”(Though it needs additional styling). For some reason though, it does not work well with the twentyfifteen theme.(The submenu does not show.) add_filter( ‘wp_nav_menu_items’, ‘wc_products_on_nav_menu’); //filter to add the html add_action( ‘save_post_product’, ‘rebuild_custom_wc_nav_menu’); //action to regenerate the menu array anytime a product … Read more

Menu not Showing on Mobile or While the page is shrinked

I can’t see the style.css file of this theme. But through browser I indicate, media rules (at line#4884 of style.css) for .menu-top-menu-container cause this behavior. Removing .menu-top-menu-container’s property from this media rules could fix your problem.

can anyone help me converting my static menu to wp_nav_menu I’am trying to add static menu item to WordPress Menu

<?php wp_nav_menu(array( ‘theme_location’ => ‘menu_location’, ‘container’ => false, ‘items_wrap’ => ‘%3$s’, ‘items_wrap’ => ‘<ul id=”nav-primary” class=”navigation %2$s”><li class=”normal”><a href=””><span class=”label-nav”></span><spanvclass=”label-nav-sub” data-hover=””></span></a> %3$s</ul>’, )); ?> Above example you can use your static item as well. TO make it dynamic you can use nav walker see this example – https://developer.wordpress.org/reference/functions/wp_nav_menu/#comment-content-207

Automatically put a menu on every post

Without knowing where exactly you want to put this (all posts, certain categories, etc.) I will give you the way to do it across the board. First step is to go into functions.php and find the function where your menus are being defined. Inside that function add the following code: register_nav_menu( ‘dmca’, __( ‘DMCA’, ‘theme-slug’ … Read more