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.
1
vote
2answers
66 views
Grey out nav buttons unless is_user_logged_in()
I'd like to show my users some features I offer if they register in a special nav bar. I've created this for a logged in version and a logged out version:
if ( is_user_logged_in() ) {
$menu = ...
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 ...
1
vote
2answers
98 views
Using my WordPress menu on another platform
I have a WordPress site and am adding a Shopify-hosted e-commerce section which will be hosted on their servers and accessible via a subdomain. Is there any way to mirror the WordPress Navigation for ...
0
votes
1answer
25 views
Make three menus with three category levels
I want to have 3 menus of categories, and each menu with diferent level of categories.
First menu with First level categories:
category 1
category 2
category 3
If I go to the first category, I ...
0
votes
1answer
61 views
individual images as navigation design TwentyTen
I can't figure out a solution for changing the black bar in Twenty Ten to individual background images behind each link. Using an image I created in Photoshop I have tried changing a few things in the ...
0
votes
1answer
21 views
Wordpress Navigation
I have my html code for menu as follows:
<div class="menu">
<ul>
<li><a href="index.php" >Home</a></li>
<li><a href="aboutus.php" ...
0
votes
1answer
102 views
wp nav menu set limit only on top levels
I wonder if anybody knows this!
How to set limit to toplevel menu items in wp nav menu.
Example
i have this menu in my admin dashboard.
IMAGE PREVIEW
I would like to count ONLY top level items and ...
0
votes
1answer
53 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' )); ...
0
votes
1answer
39 views
Showing Custom Menus in the sidebar
I want to get custom menu in my top level page and the sub pages which are not child of the top level pages.
I got many examples using wp_list_pages but it requires the sub pages should be the child ...
0
votes
1answer
35 views
wp_nav_menu - Collapse with PHP
How can wp_nav_menu be used to collapse and expand elements with PHP? Some walker function? Plugin maybe?
What it looks like in wp-admin menus
About
Customers
Cases
Contact
Contact us
...
0
votes
1answer
84 views
How do I hide one menu item link for logged in and logged out users
Using bbPress and s2Member, I need to hide the registration link in the menu for logged in users and the members directory link for non logged in users.
0
votes
1answer
48 views
Where would I find Custom menu attributes in the database?
In what table would I find the title of a custom menu in MySQL for Wordpress 3.5.x?
0
votes
1answer
102 views
How to register custom menu widget
I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
0
votes
1answer
42 views
Should the caching of WordPress menus be specific to each page?
Introduction
In optimizing large WordPress Websites for performance I always look at caching certain parts of the Website, mostly (of course) those that require a lot of Queries/calculation.
For the ...
0
votes
1answer
85 views
Remove first separator in wp_nav_menu
I am using following code to get my menu.
My problem is Span is not getting added and I want to remove the first separator.
<div id="sub_nav">
<?php $menuParameters = array(
'container' ...
0
votes
1answer
98 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 ...
0
votes
1answer
246 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 ...
0
votes
1answer
42 views
Site with all content on the front page
I would like to achieve the following:
all the content is displayed on 1 page (the front page)
the content is organized in sections
the content for each section can be edited separately
each section ...
0
votes
1answer
125 views
Date range filter for manage posts list on edit.php
I need to add some custom submenu links to the Posts menu in WordPress admin so content managers can click on a link and get a list of posts from today, yesterday or this month. The default date ...
0
votes
1answer
83 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:
...
0
votes
1answer
39 views
Custom Links in Walker Class
I am creating a custom walker class.
I need to identify the custom links that will be added to the menu from Appearace > Menu > Custom Link
so that they will have a different format to the page/post ...
0
votes
1answer
228 views
Get menu item slug
I use custom menus and I’d like to get the menu item slugs.
Is that possible?
// Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu)
// This code based on ...
0
votes
1answer
41 views
WP MU: Using pages from main site in other sites’ menus
Is it possible to use pages created on the main site in other sites’ menus?
For example it would be excellent if all pages from the main page not only appear in the Custom menu section of the main ...
0
votes
1answer
52 views
how to keep theme background image, menu or site header image while moving site in sub directory?
I'm moving site root to sub directory, menu background image or site header display as default,
I have change URL in db as set all sub directory location also set .htaccess
but my custom background or ...
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 ...
0
votes
1answer
211 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 ...
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 ...
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
43 views
Show posts of parent in edit.php
I'm creating a post type for a site where there 4 main 'parent' pages in a custom post type. For the sake of argument the post type is 'schools'
the 4 (of many) parents are:
Cambridge
Teesside
...
0
votes
1answer
460 views
Remove the <ul> Tag from wp_nav_menu in Wordpress 3.4.1
my problem is the following:
I want to remove the 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 ...
0
votes
1answer
103 views
Menu Custom link - using relative link when WP is in a subdirectory
I tend to develop sites in a subdirectory, and I tend to use a fair amount of custom links in my menu ( the "Custom Links" option in the WP admin Appearance > Menus section) to display archive pages.
...
0
votes
1answer
73 views
Nav Menu Display
Hi I'm wanting to create a custom navigation menu that will require creating 2 div containers to hold the SUB-MENU set. In other words I want to do this:
<div id="access">
<div ...
0
votes
1answer
498 views
Category menu item and its last 10 posts as sub-menu
i have some posts categories as element of a main navigation menu, and i'd like to display the ten lasts posts of this category as sub menu.
ex: Category1
Lastpost1
Lastpost2
The ...
0
votes
1answer
131 views
Auto Filled Custom Menus for Custom Post Types?
Is there anyway to have custom menus that fill out automatically, specifically for custom post types?
You can do it for default pages but nothing else it seems...
For example you have a page which ...
0
votes
1answer
355 views
remove everything from wp_nav_menu
My theme has three 3 menus: two that are dropdown menus and one that is different. I want to remove the div, class, etc. from the menu that is different.
For Example:
I have three menus
topnav ( ...
0
votes
1answer
186 views
Display link with current user's username in it in Custom Menu
I'd like to add a link to BuddyPress' My Favourite Topics in a Custom Menu. Is there a way to use the current logged in user's username in the link?
I mean like the %category% in the permalinks.
0
votes
1answer
120 views
How to looping taxonomy terms?
is there any way to loop terms in a way they display in menu?
Eg:
Let say I have 2 taxonomies in a post type - tax1 and tax2.
They are not hierarchical to each other.
If I have posts that have ...
0
votes
1answer
193 views
Missing current_page_item in custom menu
I'm using the new custom menus in my side navigation and it only creates a class sub-menu in the UL's but does not use the current_page_item like when you use wp_list_pages(). I have 3 levels and only ...
0
votes
1answer
52 views
Menu System: Custom Links
Is there a way to set default values for options selected in the WordPress menu system? My example would be if the "Custom Link" option was chosen, can this default to a _blank target? Thanks!
0
votes
1answer
102 views
Menu System: View all by default
Been doing some digging and trying to see if there is a way to change the default list for Pages, Posts, etc in the WordPress menu area to default to "View all" instead of a truncated list. Any ideas? ...
-1
votes
1answer
183 views
Creating an accordion style menu
Is there any way to create a menu with dropdown list like the image below in WordPress ?
click to enlarge ⤴
Here, when we click on [+] sign the dropdown menu shows up, I can manage the CSS, but ...
-1
votes
1answer
76 views
Add items to a menu dynamically
I'm doing a site in WP with dynamic and static content. I'd create the menu from the admin panel. I have 5 sections (Home, about, Boats, News(blog), contact). I'd create a custom post type with new ...
-1
votes
1answer
404 views
Open WordPress Page from selected option dropdown
Code/process to get option dropdown menu selection to open page in WordPress with php?
Tried all kinds of plug-ins, widgets, but none will make menu that fits requirements of project so far.
...
-1
votes
1answer
72 views
my theme automatically adds new pages to menu
I have a theme that has a problem. When I add new page in it, it automatically adds two menu item of that page. Here is my code from functions.php
<?php
if ( function_exists('register_sidebar') )
...
-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
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 ...
-1
votes
1answer
73 views
Navigation won’t update to show full path to single post
I have a site with a custom post type “projects” and two taxonomies “clients” and “mediums”. For the navigation I’m using a custom nav walker (that extends Walker_Nav_Menu). This all works very well ...
-1
votes
1answer
166 views
highlight parent page on menu when child page is on sidebar (and not on menu)
i'm using twenty-eleven, i have on the menu 4 items : Home, About us, Contact, Clients
it's a custom menu. The site currently is on localhost, so no preview is available. However i haven't put the ...
-1
votes
1answer
466 views
Why don't my custom menus show up in WPtouch Pro?
I'm using WPtouch Pro to create a mobile theme for my wordpress installation. I've activated it, but the custom menus I've created don't show up in menus drop down.
Note that I'm using a different ...