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

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.

Menu Button that link to different pages for unique user?

If you want to do something like a “Back to previous page”-link that will probably not work with the WP menu system. But you could modify/add your theme and use $_SERVER[‘HTTP_REFERER’] (PHP manual) to link back to the site, where the user clicked the link to the actual page. But that information can also be … Read more

How to select single category in menu if post have two categories?

Yes, Finally i had done it. I done changes in nav-menu-template.php. I created one variable and initialized with 1 above foreach ( (array) $menu_items as $key => $parent_item ) { this code. and add conditional code if($repetation == ‘1’){//to stop second selection of menu $classes[] = ‘current-menu-parent’; $menu_items[$key]->current_item_parent = true; $repetation++; } else{ //echo $repetation; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)