Showing main menu and child menu in diffent places in a same page
Showing main menu and child menu in diffent places in a same page
Showing main menu and child menu in diffent places in a same page
Using add_menu_page and add_submenu_page is generally used for adding pages to the dashboard to serve a specific purpose, such as accessing the options page for a plugin settings. Using them is unnecessary, however, if your intentions are to add/edit posts/tags/categories to a custom post type (CPT). When a CPT is correctly registered, with it’s corresponding … Read more
I edited your title so as not to give the impression this is a CSS issue – because it isn’t. Is this a custom created menu item? If so, you may need to add the trailing slash in menu admin.
I just got into the database after trying this myself, so beware of inaccuracies. I’m also assuming the database-prefix is wp_. What I found was that a refrence to the menu itself is stored in both wp_termsand wp_term_taxonomy. The one in term_taxonomyalso stores the number of elements in the menu. The relationships between menu items … Read more
Assuming you are editing a child theme (or somehow protecting your changes from future update/over-writing) a very simple way to accomplish this is with a CSS rule that targets your mobile menu, then applies display: none to it. Using a combination of media queries and carefully written CSS selectors, you can target exactly the HTML … Read more
Each theme has difference “theme location”, so when you change the theme, the “theme location” will change too. That mean there is no way you can hard code those menu to “theme location”. (That’s all I know)
Custom menu creation
If I understood correctly you are trying to position output of wp_nav_menu() in horizontal line. Your should try styling <li> elements, instead of all <div>. Also width: 100%; should be removed. Something like this seems to work: .mythirdclass li { float: left; padding: 0; margin: 1em; list-style-type: none; display: inline; }
Each WP menu item that contains a submenu haves the “menu-item-has-children” class for <li> you can use that class for add a pointer for sub menu: For example the simple example can be this but you can use that for creating better pointer for your site: .menu > li.menu-item-has-children > a:after{ content: “(have child)”; }
how to display wordpress navbar with top menu outside wordpress system