How can I only show one responsive menu on mobile devices?
I was missing the “theme_location” parameter for my wp_nav_menu() functions. http://wordpress.org/support/topic/selectively-activate-theme-locations-not-working
I was missing the “theme_location” parameter for my wp_nav_menu() functions. http://wordpress.org/support/topic/selectively-activate-theme-locations-not-working
Try this: function custom_walker_nav_menu_start_el($item_output, $item, $depth, $args){ $output=”<div class=”buttons-“.$item->ID.'” title=”some_title”>’; $output .= $item_output; $output .= ‘</div>’; return $output; } add_filter( ‘walker_nav_menu_start_el’, ‘custom_walker_nav_menu_start_el’ , 10, 4 ); This uses walker_nav_menu_start_el filter to add custom content before and after the link item. ID is appended to buttons-. If you need this customization for only specific menu then … Read more
Why is WordPress stripping anchor links from mneu item URLs?
I found that WordPress added an extra space. <ul class=”sub-menu”> so the search and replace could not be done correctly. If you look in the code inspector (developer tools) you won’t see the extra space. Once going to view source code (command + shift + U), I noticed the actual output code had the extra … Read more
You basically have everything set. You simply need to call the shortcode: [shortcodemenu menu=”slug-of-your-menu”] Remember to use the SLUG of the menu you want to show instead of its name.
I think this will solve your problem. wp_nav_menu( array( ‘theme_location’ => ‘top-menu’, ‘container’ => false, ‘items_wrap’ => ‘<ul class=”nav your_custom_class”>%3$s</ul>’, ));
Try looking at the following areas to try and debug; First and foremost, flush the cache for the url, either by hard reload cmd/ctrl + refresh > Hard reload. Or via any caching plugin you may be using. Use the inspector to look at the console, when changing items in the backend and loading the … Read more
Using walker to display all menu branches at once?
In your CSS, make sure you have this rule: .screen-reader-text{ display:none; } #menu-social li[class*=’fa-‘]:before{ content:”; } #menu-social li[class*=’fa-codepen’] > a:before{ content:’\f1cb’; } #menu-social li[class*=’fa-github’] > a:before{ content:’\f09b’; } #menu-social li[class*=’fa-youtube’] > a:before{ content:’\f167′; } What you’re seeing is labels intended to improve accessibility for the visually impaired so that their screen reader knows what to … Read more
You Can Add This css In style.css or WordPress Admin panel Option : Appearance > Customize > Additional CSS and Save css #nav .menu li:hover > ul.sub-menu { display: block !important; visibility: unset !important; }