Tagged Questions
0
votes
1answer
17 views
How do I move menu to the bottom in Custom Community theme?
I am new to Wordpress and created the following website: www.sugarhausbyamy.com
I would like to move my menu to the bottom of the screen. Is there an easy way to do this? I would also like to ...
2
votes
1answer
32 views
How to highlight the current page in the nav menu?
I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated.
For example:
You can clearly see that I'm hovering over a ...
0
votes
0answers
37 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 ...
0
votes
1answer
26 views
Header links also appearing in the footer
In my menu area of the word press admin I have access to place links in both the h "main menu" and the "footer links"
register_nav_menus(array(
'main_nav' => 'The Main Nav',
'footer_links' ...
0
votes
0answers
20 views
Adding new Settings Field to Appearence -> Menus using the Settigns API
I would like to add a 3rd text field to the admin page for custom menus called "Link Description" beneath the Navigation Label and Title Attribute Fields.
I know that I need to use the ...
0
votes
1answer
22 views
Is there an action for save_menu and/or update_menu?
I want to "save" my menus into transients. I want to update those when there's been any changes to the menus via the admin custom menus. I've looked for an action but can't see to find anything. ...
0
votes
1answer
36 views
How to add menù section to my WordPress template?
I am pretty new in WordPress blog and I am developing a blog with this template:
http://scorejava.com/wordpress351
As you can see at the top of the page there is a "menù" that only show the page in ...
0
votes
1answer
84 views
Set default screen option for appearance -> menus
Is it possible to have any control over the screen options for Appearance>Menus. I am working on a theme and with a fresh Wordpress install where I had never touched any of the screen options ( at ...
1
vote
1answer
163 views
Primary navigation menu & footer not showing in category / tag page
I tried to find a solution for primary navigation not showing in some pages, ie. archive.php.
I found one from here but it's still giving me notices.
I'm using Reverie Theme in WordPress ...
1
vote
1answer
35 views
Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
I am trying to check if a parent Page has children. If it has children I would like to echo the children as a bulleted list with links to each child (basically a menu).
Right now I have the following ...
1
vote
1answer
130 views
Custom Nav Walker to show siblings and children of current branch?
I have seen very similar (if not exact) queries to this all over Google, but always seem to find something short of what I need. I am trying to create my full vertical menu using wp_nav_menu in my ...
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 ...
0
votes
1answer
60 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
vote
1answer
20 views
Using a page as home, how do I prevent nav from setting both home and page links active?
Let's say we have a site with four items in a managed menu, corresponding to pages:
Home | Foo | Bar | Baz
The "Home" item is a custom link pointing at "/".
And we want the "Bar" content shown ...
0
votes
1answer
122 views
Menu disappears after attaching [closed]
When I go to [Appearance > Menus] and attach menu to its area and refresh that page it disappears. This happens only on one WordPress theme (but not on default).
Do you have any ideas what could ...
0
votes
1answer
29 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 ...
0
votes
0answers
34 views
Confused about adding menu support to theme [closed]
I am building a site into WP and have been reading up on how to add menus into them.
I have this in my themes functions file..
function mmw_new_register_my_menus() {
register_nav_menus( array( ...
0
votes
1answer
461 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
2answers
118 views
How to make navigation a <select> list without a plugin? [duplicate]
Possible Duplicate:
Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
I have tried several solution for this, but none of them worked.
I managed to make the nav list into ...
1
vote
1answer
70 views
Should I use custom menu, C.P.T. or theme options, or something else for this?
On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
1
vote
2answers
141 views
Select menu on browser resize
I have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done?
I know there is a plugin for that, but I want to ...
0
votes
1answer
421 views
How to develop a menu like wwe.com?
I would like to design and develop a WordPress menu like wwe.com's menu where it has multiple columns, images and a video section in drop down menus.
I can create a multi-column menu, but I'm not ...
0
votes
1answer
254 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', ...
2
votes
1answer
337 views
Best practices: Custom theme sidebar menu - hardcode or widget?
Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
0
votes
2answers
591 views
How to add nofollow to wp_nav_menu
I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow.
Does wp_nav_menu() allow this or does it require a custom walker to manually ad ...
0
votes
1answer
79 views
Displaying wp menus by name without using theme locations
I used wp menus in the past but always registering a location and then using:
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
To display a menu on that location on my ...
0
votes
2answers
517 views
Custom post type posts wont show in wp_nav_menu()
I have created a custom post type and registered it using this code
$labels = array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
);
$args = array(
'labels' => ...
0
votes
2answers
56 views
function for creating dropdown menue in wordpress [closed]
I am using wordpresss custom menue, its working fine have added this code for showing nav bar.
<?php wp_nav_menu( array('menu' => 'main-nav' )); ?>
the problem is that, I want to show drop ...
1
vote
1answer
739 views
How to use logout function on custom menu link?
All
I am using wordpress custom menu, and there is one menu as Logout.
I know wordpress Logout function <?php echo wp_logout_url(); ?>
But how can i use it in custom menu ?
5
votes
2answers
1k views
Display Menu Name using wp_nav_menu
I have a custom menu that I can call just fine using wp_nav_menu. Is there a way to have the menu name displayed inside an h3 tag before the menu?
Ex.
<h3>My Menu Name</h3>
<nav>
...
0
votes
1answer
1k views
3 Level Deep Navigation Menu Not Showing All Levels
I have a 3 level deep navigation menu which will show beside all pages on the site except the homepage. The issue is only 2 of my 3 levels are showing in the menu when displaying it using the ...
3
votes
1answer
128 views
How to display wp_nav_menu() conditionally only when not on a 404 page?
I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time.
But now i have a ...
0
votes
1answer
217 views
How do I use .addClass on an anchor tag? [closed]
I've been stumped by this all day. My page design needs to add a class to the 'a' tag of the active page, which creates a tab to let the user know that is the page they are currently on. I have been ...
5
votes
2answers
6k views
wp_nav_menu(), how to change <li> class?
I'm building a menu for my website. The static is looking like this:
<nav>
<ul id="menu">
<li class="item_1"><a href="#">Item 1</a></li>
<li ...
1
vote
1answer
149 views
Problem with empty class attributes when running a filter on nav_menu_css_class
I'm using the code below in order to remove all classes but the current-menu-item and current-menu-parent classes from the custom menus.
It works very well, however, there's one nagging issue I'm ...
0
votes
1answer
92 views
Parent/Child pages
I find that the parent/child pages in the "Pages" area of WordPress has become a bit confusing since the introduction of the new menu creation area.
Using the new menu system, as far as I know I can ...
1
vote
2answers
210 views
Menus, but not by theme location
I'm trying to figure out how to display a menu that has been created, but without having to assign the menu to a theme location.
From what I can tell, you have to assign a menu to a theme menu ...
0
votes
1answer
403 views
.current_page_ancestor broken in Twenty Eleven
I would like to have a level 1 menu in a vertical menu and a full menu in a vertical menu in the left sidebar in Twenty Eleven. My problem is that I would like to make the top item bold if the user is ...
6
votes
2answers
556 views
Add Caret to Menu Items with Sub-Menus in WordPress Theme
I'm working on a custom theme using wp_nav_menu(). What I want to do is add a caret to menu items that have sub-menus. For example, If my menu looks like this:
Menu Item 1
Menu Item 2
Menu Item ...
0
votes
3answers
976 views
Add a #hash to the links in my custom menu
I have created a static frontpage where I load in the content of all my pages. Now I have a normal custom menu, but the links refer to the pages, for example: http://mysite.com/about
Now the I want ...
2
votes
2answers
609 views
How to determine if custom menu is active?
My theme registers custom menus with this function:
function nav_menus() {
if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array('main-menu' => __( 'Main ...
-1
votes
1answer
198 views
How to highlight current menu bar base on the URL?
==================================
Home Contact About
==================================
For example, The menu should looks like
==================================
Home Contact About
-------
...
0
votes
1answer
1k views
finding menu hierachy > wp_get_nav_menu_items
Hi I am building a menu using the code listed here.
http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items
Is there a way to suss out the menu hierarchy. As i can not debug this, it is ...
1
vote
1answer
309 views
How to append to menu items selectively
I'm making this wordpress theme, and I need to create a menu that is vertical but its submenus are horizontal, like this:
MenuItem
SubmenuItem | SubmenuItem
AnotherMenuItem
SubmenuItem | ...
0
votes
1answer
168 views
Second menu not showing
I am running WP 3.2.1 on a dedicated server and having a little trouble with a second menu.
I have a menu at the top of the page which is working fine but I've added a secondary left menu to the left ...
0
votes
1answer
115 views
How to substitute old wordpress menu by wp 3 menu the right way?
I have a wp theme with this menu in header:
<div id="header_nav">
<ul id="nav" class="clearfloat">
<li><a href="<?php echo get_option('home'); ?>/" ...
2
votes
5answers
591 views
How do I highlight the menu for a child page?
EDIT: This used to be
How do I force a page to be
is_archive == true?
I was trying to solve the wrong problem. Instead of forcing the post/page to have a particular attribute, I should have ...
0
votes
1answer
263 views
wp_nav_menu and its fallback
When I use
wp_nav_menu(array(
'theme_location' => 'mainnav',
'container' => 'nav',
'container_id' => 'mainnav',
'container_class' => 'clearfix',
'depth' => 4
));
...
2
votes
2answers
377 views
adding .current* tags to custom post types and taxonomies
TwentyTen adds some classes to custom menus, for instance:
#access #menu-item-262.current-menu-item, #access #menu-item-262.current-menu-ancestor
All the top-level links in my primary navigation ...
4
votes
3answers
2k views
wp_nav_menu sort order?
Hey Guys,
I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu.
Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order?
I ...