Questions tagged [menus]

Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

How to retrieve depth of menu into template

In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function function start_el(&$output, $item, $depth, $args) but, outside this wp_nav_menu(), ...
Overdose's user avatar
  • 385
0 votes
1 answer
2k views

Admin Menu Hack (Left side in Dashboard)

How can I add a Title to my Admin Menu on the left side of the dashboard? Not a link, but just a title? I want do this in my functions and not use a plugin. Also which template file handles this menu? ...
Jusherb's user avatar
  • 19
0 votes
1 answer
75 views

How Can I add a menu to the theme from withen the function.php file

I have the following code I'm trying to automatically add a menu to a theme via overriding a function. So I won't have to edit the theme file However the menu is being outputted at the top of the ...
Oudin's user avatar
  • 409
0 votes
1 answer
89 views

Does wordpress add their own classes into nav menus?

I am building a theme and have noticed that when I create a menu with just html or have it dynamically add menu items based on pages it looks how it was meant to be. Although when I change the code to ...
user1632018's user avatar
0 votes
1 answer
372 views

Lost admin "manage_link" capability WordPress. No "Links" menu item in admin menu

Going slightly mad. In the process of upgrading a client's website to WordPress 3.5.1 we've decided to use the built-in WordPress "Links" system to manage their affiliations. I am using the "Admin ...
codewithfeeling's user avatar
0 votes
1 answer
119 views

Automatically Generated Menu pages

I am a designer for a website, which I had a developer build in wordperss for me. Each time a new page is created, it is automatically added to my menu bar. Is this something the developer has built ...
Richard Tan's user avatar
0 votes
1 answer
1k views

How to get or know the slug of home.php

I found this code from Different Main Navigation per category: <?php if(is_category('first-category') || in_category('first-category')) { wp_nav_menu( array('menu' => 'First Category Nav' )...
Lizza Faith's user avatar
0 votes
1 answer
3k views

define css class in functions.php

In my theme I use theme options to set colors to categories (heading colors, dividers colors etc etc) The way I do it is defining variables which holds a color hexa like so: $category1_color = ...
gil hamer's user avatar
  • 661
0 votes
2 answers
4k views

How to add active class to separate page link?

I'm using the Wordpress Bootstrap theme as my base theme. It uses the following code to add the class "active" to any links in the header if the user is currently on that page: add_filter('...
Jakemmarsh's user avatar
0 votes
1 answer
2k views

How to get current pages menu text?

Is there an easy way of outputting the current pages menu text? I am looking for something like <?php echo get_the_title(); ?> But for the current pages menu text.
user1721135's user avatar
0 votes
1 answer
2k views

Costum walker with sub menu item count

I have a menu like: -Item1 --Sub1 --Sub2 --Sub3 --Sub4 --Sub5 --Sub6 -Item2 -Item3 and want to do some costum stuff after x subitems, so I have to determine when x is reached. I tried to define a ...
christophrus's user avatar
0 votes
1 answer
420 views

Search form as list item in menu?

What is the best way to do this: <?php wp_nav_menu( array('menu'=>'Primary', 'container'=>'', 'items_wrap'=>'<ul id="%1$s" class="%2$...
rob-gordon's user avatar
0 votes
1 answer
2k views

Nav Menu and display post count

Iam looking for a solution that the number of child post displayed, like so: Parent (14) - Child - Child Parent (2) - Child I have played with the custom walker and tried the function with ->...
jamal's user avatar
  • 19
0 votes
1 answer
360 views

Removing Submenu from Menu

Thesis appears to automatically add the sub-menus (sub-menu ul) to menu parents if childs exists. I have a specific need to remove this html from a particular menu. The menu name is: second_level ...
Codex73's user avatar
  • 103
0 votes
1 answer
5k views

How to open a lightbox form from a navigation menu item

I want to add a custom menu item to the main navigation menu, On clicking this item I want to open a lightbox form. I have the form-shortcode ready to be placed but on a page but I don't know how to ...
irohit786's user avatar
0 votes
1 answer
112 views

Dynamic Menu drops pages?

I've created a Dynamic Menu that highlights the selected page and colors for example the blog page "red" while the other links (home, about, contanct) remain white. My question is how can I make the ...
Monstr92's user avatar
  • 137
0 votes
2 answers
1k views

How to add a menu that belongs to parent blog to all child-blogs?

I want to add a menu that belongs to parent multisite blog to all child-blogs. I need the menu displayed in all child-blogs, I mean the same menu on all multisites blogs. How I can do that?
Marco Godínez's user avatar
0 votes
1 answer
401 views

How to create this kind of sub-menu in new line?

In my design I need use this kind of wordpress custom menu. Menu (I am able to do this) Menu element with sub menu. (but not this one) In this UI , I can not able to separate sub-menu to the new ...
Ajay Patel's user avatar
0 votes
1 answer
40 views

Custom Posttype and menu classes

I'm working on a custom theme for a website, and this website has a custom posttype 'Recipes'. I added custom menu support and made a menu item which points to www.websitename.com/recipes And ...
Crinsane's user avatar
  • 121
0 votes
1 answer
847 views

How to use wp_list_pages on a grandparent page

I am using wp_list_pages to show the page structure on a website. For instance, if I use this code, it will show me the complete child / grandparent heirarchy of the current page the user is on: ...
JCHASE11's user avatar
  • 209
0 votes
1 answer
13k views

Controlling sub-menu within sub-menu

I have a menu setup at the moment for a site I'm building that I'd like to change a little the way it pops up and doesn't popup :P At the moment, I hover over my main menu items if there are sub ...
Bjorn's user avatar
  • 3
0 votes
1 answer
1k views

An alternative to Wordpress's built-in menu functionality

The main menu on my site contains about 30 items, and I am no longer able to save it. This seems to be a fairly common problem with bigger menus in Wordpress. I am on a dedicated server with very ...
supertrue's user avatar
  • 3,016
0 votes
1 answer
1k views

Add log in link to menu in Twenty Twelve

I can't find a way to add the log in link to the new theme of WordPress, Twenty Twelve. I did find a lot of answers on the older theme, where they suggest to add some code in the functions.php file. ...
boje's user avatar
  • 203
0 votes
1 answer
180 views

Main menu navigation links and new pages

Sorry i'm pretty new on wp, i would like to add new menu links and site pages, to the main top menu bar. I'm using a third parties template, and i see the top.php file which contains the top menu ...
Filippo oretti's user avatar
0 votes
1 answer
3k views

Dropdown menu on click change

Im working on a website where I need to create a submenu that shows only the parent pages. When I click on one of the parents it has to show the children from that parent. Here is the menu hierarchy ...
user avatar
0 votes
1 answer
5k views

How to add social buttons like facebook and twitter in the footer of a theme?

Hi I own the blog camilamfotografia.com.br and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc... I have tried without ...
Camila's user avatar
  • 1
0 votes
1 answer
601 views

Class for Selected Menu using wp_nav_menu

I create Widget for Vertical menu Now I am trying to get selected or current menu using wp_nav_menu Any one know how to Add current class when selected in wp_nav_menu
softsdev's user avatar
  • 109
0 votes
1 answer
2k views

Page header menu links change

I am trying to find out where the header menu links on my WP is located so that i can change the URL of the page. the link is: http://blahblah.com/?page_id=11 and i need to change it to: http://...
StealthRT's user avatar
  • 183
0 votes
1 answer
532 views

Walker_Nav_Menu creating too many closing tags?

created this walker below to create a set of tabs. All looks ok but in the source there are several more than there should be causing validation errors. I only want to generate a tab for 'question' ...
v3nt's user avatar
  • 1,669
0 votes
1 answer
343 views

Repeated nav bar queries failing to be cached

Every time a page view occurs, wordpress is sending a complex non-indexed query below. The exact same query is sent over and over and it seems that it is being passed through some "caching" code. But ...
daveagp's user avatar
  • 103
0 votes
1 answer
2k views

Bootstrap menu - make menu entries with submenu not clickable

I am currently developing a new WordPress theme employed on the basis of twitters bootstrap build. To use the menu Custom Navbar, I've followed the instructions of goodandorgreat. https://gist....
hazelnut's user avatar
0 votes
3 answers
3k views

highlight parent page menu item when in custom post type

in a website that I am building I have a portfolio custom post types (called: "project") to show my portfolio items. The page that holds the loop of the custom post type is a custom page called "...
gil hamer's user avatar
  • 661
0 votes
1 answer
650 views

Custom Menu in Admin doesn't change menu in browser

i've just begun participating these stack overflow forums yesterday and had a great experience with someone who could problem solve with me. working from the admin panel under the themes tab i have ...
Ijan Hilaire's user avatar
0 votes
1 answer
140 views

navigation among single posts

In the twentyeleven theme each single post page has two navigation links which point to previous and next post, irrespective of the search made by the user. That is, the next post is the successive ...
Toc's user avatar
  • 227
0 votes
1 answer
84 views

What is the $menu parameter used of in wp_nav_menu()?

I have a theme where I register multiple menus in function.php. All menus have a unique name and a simple description (we just use the name of the theme so they all have the same desc but thats ok). ...
Matthew Xerri's user avatar
0 votes
1 answer
65 views

Custom menu: Link names

I would like to build a wordpress theme with a custom menu (no dropdowns, nothing fancy). I am trying to get wp_nav_menu do what I want, but I can't quite see how to achieve the following. I would ...
user avatar
0 votes
2 answers
1k views

Blending Foundation's Tabs with Wordpress Nav Menu & Display Active Tab

I am currently working with ZURB's Foundation Framework. It's a terrific framework and my project is coming along a lot nicer and quicker than it would have beforehand. Foundation comes with CSS/...
thatguycraig's user avatar
0 votes
1 answer
659 views

Wordpress Menu - creating a fake link [closed]

I like to create Web site mockups for clients using Wordpress. Typically I will only create the landing page and a believable navigation menu. To keep from creating extraneous pages I will create a ...
Dr Dave's user avatar
  • 28
0 votes
1 answer
146 views

displaying meta key value with wp_page_menu

I know that WP3 offers wp_nav_menu and description field but I was wondering if it is possible to alter wp_page_menu to echo desired meta key value next to the page link in format that is adjustable. ...
daniel.tosaba's user avatar
0 votes
2 answers
2k views

How to implement a secondary menu?

I actually need to implement a secondary vertical menu like in here: http://www.adverum.lt/lt/paslaugos/korporatyvine-komunikacija It has to be vertical and it looks like it based on frames, but as I ...
user385917's user avatar
0 votes
1 answer
1k views

Wordpress Menus - How to add inline styles to UL menus

I've just converted my HTML version of a theme over to Wordpress, and I'm currently converting the dropdown menus over. What WordPress processes: <ul class="dropdown"> <li id="menu-...
sdfkjsdfsgfvsdgfsdg's user avatar
0 votes
2 answers
3k views

Remove the <ul> Tag from wp_nav_menu

I want to remove the <ul> tags from the wp_nav_menu. I already found different posts about it here but they don´t seem to work for me. Here is what I did: First I registered the menu in ...
Jannik Ruf's user avatar
0 votes
1 answer
353 views

Menu not styling. New menus functionality giving me a headache

I can't find a good tutorial on the new menu handling functions, and the ones I found don't seem to work for me. What am I doing wrong? In my functions.php: (I'm using the Blank Slate theme as a ...
iDontKnowBetter's user avatar
0 votes
2 answers
4k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
Zain Baloch's user avatar
0 votes
1 answer
490 views

twentyeleven theme: Where is the code that handles moving the search bar on resize?

When twentyeleven theme gets too small, the search bar that was in the nav bar is moved up into the header image. My question is, where is this behavior handled in the theme? I would like to modify it ...
Dan's user avatar
  • 897
0 votes
2 answers
1k views

Styling an "active" link outside of Wordpress default menu

I want the background-color of the selected box on this page to display gray color once the user lands on the corresponding page. My link is currently setup inside of the page template itself as a ...
Rob Myrick's user avatar
0 votes
1 answer
684 views

Buggy wp_nav_menu?

I hope somebody can show me some light on this. I am working on a site that has a 3 level menu which loads calling 3 different wp menus (let's say "main-menu", "projects-submenu", "2nd-level-projects-...
Charliechocolate's user avatar
0 votes
1 answer
5k views

Custom nav menu not showing

I want to make a custom menu that will be a select-box, I registered a custom menu: add_action( 'init', 'register_my_menu' ); function register_my_menu() { register_nav_menu( 'primary', '...
ilyo's user avatar
  • 356
0 votes
1 answer
300 views

select a main navigation menu per user type from multiple main navigation menus

GOAL: I want to use custom menus for two different kinds of users. For instance, I want to Merchant users to be able to use Merchant menu, and Owner for Owner menu. I do not have enough reputation, ...
handicop's user avatar
  • 113
0 votes
1 answer
892 views

Can you exclude child pages of a specific parent within a navigation?

For example, I'm using wp_list_pages to display the navigation, the child pages (and their children) appearing on hover as is typical. However, I want one of these parents to not display the children. ...
Rob Dobson's user avatar

1
38 39
40
41 42
65