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.
0
votes
1answer
80 views
Check if page is in a certain menu
I have a client that wanted two "main menus" and we needed to programmatically display whichever menu contained the current page. How can I do that?
Ex: We're on the "About" page. Figure out which of ...
0
votes
2answers
357 views
Creating a custom menu/widget area
I'm looking to create a /menu/widget area like the following site:
http://www.microsoft.com/en-gb/default.aspx
please see sections under downloads, security, support, about
is this considered a ...
1
vote
2answers
125 views
Add nav menu CSS class to body
I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes.
For example, if the current menu item has a CSS class ...
2
votes
1answer
84 views
Problem with registering menus - What to do when other solutions aren't working?
I'm not able to get nav menus to register - and I'm not sure what else to try when posted solutions are not working?
I've tried the solution in this post: register_nav_menus() won't register ...
1
vote
1answer
234 views
how can i add css class on current page in wordpress wp_nav_menu
how can i add css class on current page in wordpress wp_nav_menu
For Example I Want To Use It In Wordpress wp_nav_menu
<li><a href="index.php?id=index&colortheme=green" class="selected" ...
-1
votes
1answer
36 views
default menu help [closed]
I just did a fresh install of WordPress to test my new theme. When I go to the site, the 2011 theme is active and the pages shown are "Home Sample Page" looking in the functions.php file, I would ...
0
votes
1answer
76 views
How to activate/deactivate menu tab and keep the same id?
I have a problem here and i cant find/think of any solution yet.
I want to have a menu button that can be activated/deactivated and still keep the same id so the CSS will still be applied.
Is there ...
1
vote
2answers
52 views
Does loading of sub pages in menu cause load to the server?
I am working on a wp site where I need to manage 500s of child pages for a single page such as About menu can have more child pages need to manage those child pages as sub menu and I have more than 5 ...
0
votes
1answer
48 views
Setting a Master Menu on a Custom Post Type
I am currently developing a site for a car dealership to list their inventory. I have setup the car up as a custom post type. Each post will have children (gallery, features, accessories, etc).
I ...
-1
votes
1answer
189 views
How to create a custom WordPress navigation menu?
I hired a designer to create a custom website for my startup home business. Two years later the site is uploaded onto WP but I can't do a thing with it. The site is password protected as it is still ...
2
votes
0answers
108 views
display only the wp_nav_menu, which has the current-menu-item
i have a problem displaying only the menu with wp_nav_menu, in which the current-menu-item is in.
Heres what i got:
function register_menus() {
register_nav_menus(
array(
'sidebar-menu' ...
1
vote
2answers
823 views
Convert WP Menu to a Drop Down for Mobile browser
I'm working on a wp project with responsive theme.
I have single level nav menu at the top of the site, that I want to change to a Select Option tag for mobile browsers (small screens) with options ...
0
votes
1answer
42 views
I'm using wp_nav_menu to display my menu, but I want one more link in there that is a hardcoded link. How can I do this?
I want to have all my dynamically generated links in my nav menu, but the second last one should be a link to my "Work" for my portfolio, which is just a link to a section on my main page. (Anchor ...
-1
votes
1answer
62 views
How can I make this process automatic?
I have a Bakery page. Every time I add a child page such as cakes, I would like to add the page title cakes to a custom taxnomy. I also want to add this child page to a menu which displays these child ...
0
votes
1answer
636 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 ...
-1
votes
1answer
113 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
1
vote
1answer
64 views
Main menu highlighting on subpage which is not in submenu but in hierarchy
I have my menu made of images. Therefore I use divs and with .current-menu-item I use CSS to change the image. This works if I'm directly on this main page. If I'm on a subpage I cannot use this trick ...
1
vote
0answers
60 views
How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
I am using "Allure Real Estate Theme for Placester" wordpress theme, I tried the below three methods but no positive result in realtypointusa.com
I tried in Dashborad-> Appearance-> Menus and ...
3
votes
0answers
160 views
Highlighting current item of custom post types' sub pages, listed by wp_list_pages
The below code is for listing the custom post types itself and its children in the sidebar.
The code works great but does not highlight the sub pages.
In functions.php:
...
1
vote
1answer
135 views
how to get nav menu list through menu name in wordpress
How to get nav menu list through menu name in WordPress
I'm using this code by this code but showing all pages not working with custom nav menu name
<?php ...
1
vote
2answers
45 views
Sidebar links for different pages
Hey all i am wondering what i need to add in order to have a different sidebar for a set page?
I created a category for the page (called PatientEdu):
And made sure the page was linked to the ...
0
votes
1answer
80 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: ...
-1
votes
1answer
139 views
Display sub menus as separate lists
I need to change the way of rendering menu in WordPress - I guess I should write my own walker class but I'm not sure how to bite it. What I'd like to achieve is to render each level of menu as ...
0
votes
1answer
95 views
Theme Location empty
I have a problem. I have a WordPress theme which supports two navigation menus. The primary menu shows all the pages, and the secondary menu displays the categories by default. When I go to ...
0
votes
1answer
92 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' ...
1
vote
2answers
112 views
Unable to create or edit menus
I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding ...
0
votes
1answer
151 views
wp_update_nav_menu_item not saving in multisite API
I'm creating a script that automates build a wordpress site from another CMS.
I've been able to change every setting: themes, options, subdomain, site title, etc.
But what is eluding me is being able ...
4
votes
2answers
105 views
Call custom field into menu item
I have a navigation menu in Wordpress. I would like it to check if the page has a custom field of "menu_icon" and if it does, add that custom field into the menu item it corresponds to. I'm sure this ...
0
votes
2answers
208 views
Specifying Class style for Menu
Im integrating Superfish into WP. I have called the CSS and the JS. However when I place a class style in the wp_menu as below, the menu is disappearing (see here for rendered output). Could anyone ...
0
votes
2answers
1k views
add span class inside wp_nav_menu link anchor tag
I found examples adding a class to top level items, so we can display an arrow in menu items with sub-items, but is seems terrible to cope with the already built in WordPress classes, can't display ...
0
votes
2answers
130 views
How to switch between the Primary Menus programmatically?
Lets say i created 2 Different Primary Menus (in the Appearance > Menu .. section).
Then in the (Theme Location > Primary Navigation) Section, i can set 1 Menu to be activated.
So how can i switch ...
0
votes
1answer
214 views
How to rewrite the output of wordpress nav menu?
I have been trying to figure this out for a while. I need to overwrite the default output of the wordpress nav system.
Right now it is like:
<ul id="main-nav">
<li ...
1
vote
2answers
836 views
Wordpress Custom Menu Widget Style
I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
0
votes
1answer
82 views
Bought custom navigation menu from codecanyon, how to change feature.php?
I bought a nav-menu with css but not sure how to use this in my wordpress theme. Is there a standard way to implement it?
Like this ...
0
votes
1answer
58 views
Create and style menu
I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
-1
votes
3answers
60 views
Adding a post to a page
I would like to know how I can add a specific post to a specific page? It would be great if anyone can suggest a reference to this problem.
Do I need to create a post category to relate with a page? ...
1
vote
1answer
405 views
How to add sub-menu to a menu generated by wp_nav_menu by using plugin
I have a menu generated by wp_nav_menu which look like
<ul class="nav-menu" id="menu-top-nav">
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
0
votes
1answer
57 views
Custom menu linking to page not found
I have built a series of pages and sub pages in wordpress.
Then, using custom menus with 5 x top level menus and then sub-menus under 3 of these top level menus:
Menu 1
Menu 2
- Sub Menu 1
- Sub ...
0
votes
1answer
89 views
Submenu opened problem
I am trying to fix a problem with a submenu.
I have coded (as you can see on jsfiddle: http://jsfiddle.net/8899x/87/ ) my horizontal menu and the submenu. I would like to leave the submenu opened when ...
0
votes
1answer
417 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.
...
3
votes
1answer
230 views
Extend walker class with custom post types
I'm using the walker class below, but I can't make it work with custom posts.
class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu {
function end_el(&$output, $item, $depth) {
...
0
votes
2answers
529 views
Get custom post type categories to show up in menus
I'm wondering how it's possible to add custom post type categories as an option to add as a navigation menu item.
What I have:
$portfolio_args = array(
'labels' => array(
'name' => ...
2
votes
0answers
208 views
Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it.
When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
3
votes
1answer
128 views
How is custom menu hierarchy output handled?
I'm looking to pass custom nav_menus through an RSS feed so I can grab them on other sites to create the same custom menu on multiple sites.
What I can't figure out by looking through the database is ...
1
vote
1answer
157 views
Change the menu home link to something else
I'm using the built in menu system, and I wan't to change the text of the home menu link to something else, like "hjem", and i have tried placing this in the code:
<?php wp_page_menu( array( ...
1
vote
0answers
95 views
how to hide sub menu in members page from visitor and not login user
I just learned how to create menu in buddypress members page.
I have created a sub menu in member's page along with activity, profile, message, etc.
How can i hide this menu from users and visitors ...
1
vote
1answer
45 views
Get admin menu link
Is there any way I can get the menu link for admins?
http://codex.wordpress.org/Function_Reference/edit_post_link
Similarly to the edit_post_link() that returns the edit link for loggedin Admins
I ...
2
votes
2answers
939 views
How to use a WordPress' existing admin icon?
I use the add_menu_page function to add an new admin menu:
add_menu_page(
'Custom_menu',
'Custom_menu',
'edit_posts',
'custom_slug',
'',
'wordpress_existing_icon',
5
);
...
0
votes
1answer
149 views
Give child-categories same class (the parent category-slug) as parent in menu list?
I am trying to do two things, which I have no idea how to do:
give child categories the same class as the parent category (which
is the parent category-slug)
create a menu which displays my ...
0
votes
0answers
68 views
Menus aren't displaying in navigation bar in Chunk Theme [closed]
I'd like to create custom drop-down menus on the navigation bar where I could then nest particular posts that belong to particular categories.
For example, I'd like to have a "Personal Style" menu ...
