Sidebar current menu item for parent

I believe that it will be hard for you to accomplish that without some javascript because you are adding the link manually. However, you can achieve the same thing in another way: Most wordpress themes come with a body_class() function in the <body> tag. That function adds several classes to the body tag that allows … Read more

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

Installing compact search in the main menu?

You can create a menu item for search icon/button and check it’s ID in HTML code. Then use can use jQuery click function to show and hide search div. For example if my menu item list (li) id is menu-item-22 and search form container class is search_div then this will be the jQuery for displaying/hiding … Read more

menu is only pulling in one item

This sounds suspiciously like the conflict that happens sometimes when tag taxonomies, custom post types, and menus collide in a weird way. I have only found hacks for this issue, and many of them are listed in this thread on WordPress.org.