Appearance > Menus

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

Making wordpress menu horizontal [closed]

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; }

Question regarding register_nav_menus();

If I got you correct, You would like to know about where Top primary menu is written. So answer is simple, it is the part of the back end.You need to login to your admin dashboard. After login , Go to Appearance > Menus. When you go here, you will find below screen: In above … Read more

Primery Menu Configuration problem

For the ul part you should use this: ‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s”>%3$s</ul>’, %3$s is a placeholder for the list items, so you shouldn’t change it to “Laptop” as you have done. These are the parameters for the id and the class, that need to go together with items_wrap: ‘menu_class’ => ‘menu_123’, ‘menu_id’ => ‘mno’, … Read more