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.

learn more… | top users | synonyms (4)

1
vote
2answers
62 views

A page that shows a list of a specific custom post type

I've created a custom post type called 'product'. I want to add a page link to 'products' in the menu, but I don't have that option. I would like to know if there is a way of displaying it the same ...
0
votes
0answers
39 views

wp_nav_menu() reutrns HTTPS?

We have SSL for our domain. But there's only one page want to use SSL to appear on (https://mydomain.com/secure-page/). All others should be regular http:// pages. So we've set siturl and homeurl both ...
1
vote
1answer
474 views

Unable to center menu and header image twenty twelve

I have a really simple site at cyriljoyce.com on the 2012 theme I created a child theme to center the header and menu bar but just cannot seem to make it work. The child theme text is below The line ...
-1
votes
1answer
29 views

Unsual behaviour of navigation Menus

I deleted all the previous menus which where there in my site. Then I created a new menu called Home and added few pages to it So my menu looks like this Problem : When I click on About us and other ...
0
votes
1answer
131 views

Auto add pages to primary menu with functions.php

Is it possible to have new pages automatically added to the primary menu via functions.php? This particular theme will be deployed on a special version of multisite, so the checkbox which is ...
0
votes
0answers
58 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
1answer
151 views

How to add a element with walker menu right after begin of the navigation tags?

I was trying to add a element right after begin of the navigation tags and before the ul will start. So add a element directly after opening nav tag. I tried this, but this will add a list item after ...
1
vote
1answer
246 views

Sticky Header in Wordpress using BootstrapWP theme [closed]

So I am using Rachel Baker's open source BootstrapWP starter theme to develop a Wordpress theme. There is a repository on Github but I didn't think this question was appropriate to post there. I am ...
0
votes
1answer
194 views

Get the original menu item name string instead of the label

I am building a hierarchical menu of custom taxonomies and their related posts using wp_get_nav_menu_items as follow: if( $locations = get_nav_menu_locations() && ...
0
votes
0answers
11 views

Site Live Database Operations issues

I have a working site on a staging server. The live site is working perfectly, but none of the database operations is working. It doesn't even fire the select query. I have pages in wp_posts tabel ...
0
votes
0answers
86 views

Breadcrumbs using the Menu Structure.

I know there are several questions regarding how to use the menu hierarchy for breadcrumbs and I followed the instructions doing the following... I added this code to my theme's functions file: /** ...
1
vote
1answer
837 views

getting parent page id when using custom menu.

Im using custom menus to display a menu using wp_nav_menu(). I want to get the_content() of the parent in the menu, without setting it as a parent page in pages. Is there a way to get the parent id ...
1
vote
2answers
238 views

Debugging - trying to add search box to menus

I have already asked a similar question at stackoverflow (http://stackoverflow.com/questions/22492292/add-filter-in-wordpress-how-do-i-know-if-it-is-run), but maybe that was the wrong place? As you ...
0
votes
0answers
35 views

Conditional output for start_lvl based on title

I want to add a custom class to the UL tag on start_lvl if the user writes "full" on the title area of the menu. Something like this: public function start_lvl( &$output, $depth = 0, $args = ...
1
vote
1answer
172 views

Add class active to static menu

I have a static main menu, but I'd like to add the class 'active' to the menu item in the nav if it is the page, or a child of that page. I imagine it to be a series of something like: if ( ...
0
votes
1answer
71 views

Use menu structure for permalinks

I'm building a blog that is kind of split into 5 different parts. Example: I try to combine 4 brands and the company owning those brands on one website. Let's say the company is called "Apple" and the ...
0
votes
2answers
61 views

In the Admin Dashboard, can I choose which sections to display?

For the editor I would just like to display Pages, Posts, Media and Menus. Is there a way of doing this with the functions file or similar? Thanks in advance.
-1
votes
1answer
127 views

buddypress slug issues [closed]

i created a bp-custom.php and regrouped the menu items fine. But now i am trying to add a link to go to /site/members. It list all the members. When i add it though it goes under the profile I am ...
0
votes
0answers
17 views

Extra Editing Box in WP Dashboard

So I am trying to add an extra box in the WP post dashboard. In this box I will add a piece of HTML code. This code created the box in the WordPress area: $woo_metaboxes[] = array ( "name" => ...
1
vote
1answer
140 views

Logout and redirect using the WP Menu

I have a navigation hyperlink in my secondary menu, that will allow the user to logout: However, the user is prompted with the following screen for confirmation, when clicking on the hyperlink in ...
0
votes
1answer
670 views

Change menu items URL

I create a single page website and use only anchors (#) on main menu items. Now, I need to include a second page on the website and keep the same menu. I'm using roots theme. Then, I'm building menu ...
0
votes
0answers
28 views

Menu of pages with an image

I'm getting really desperate and I need your help, I really tried and research and I couldn't find anything yet. I'm new at wordpress.. and I have this question, I hope you can help me... I want to ...
0
votes
0answers
73 views

Plugin action hook fires when it should not (unrelated admin screen)

I maintain a plugin which generates a PDF of a page or post when an icon or link is clicked. PDFs may be cached, and as such, when a page or post is edited, we refresh the cache by regenerating the ...
0
votes
1answer
88 views

Add login hyperlink to secondary navigation menu

I have the following lines of code in my functions.php file: #-----------------------------------------------------------------# # Custom menu ...
0
votes
1answer
190 views

Remove nav menu item by script

I want to create my custom nav menu using a script in a wp plugin. I'm almost there using this tutorial. All I need is the option to delete menu entries. something like ...
0
votes
0answers
1k views

Adding menu items dynamically using wp_nav_menu_objects

On my primary navigation, I want each top level page to have a list of the subpages. So I created code that dynamically adds menu items to the primary navigation. This works only on the first level of ...
0
votes
1answer
170 views

How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?

I have the following problem developing a WordPress theme and I am here to ask you if this solution could be a good solution or if exist some better way to do. I have a custom WP theme and into this ...
0
votes
2answers
200 views

Bootstrap button menu on wordpress

I have a simple 4 item menu on wordpress. I want to use the bootstrap button style for this menu. This is the hand-made code of what I want to get. <div class="menu-menu-container"> <ul ...
0
votes
0answers
59 views

diginews theme, add image under navigation bar

I'm trying to add an image to the header under the navigation bar. I added the following line before at the bottom. <img src="public_html/wp-content/uploads/2014/03/books300x200.jpg" height="80" ...
0
votes
0answers
15 views

Get parent menu item id on submenu ul using start_lvl [duplicate]

I'm struggling with the Walker_Nav_Menu. In the start_lvl function, where I create the <ul> tag holding my submenu, I want to insert the item ID from the parent menu item. I know that I can ...
0
votes
2answers
3k views

Adding class atribute to wp_nav_menu ul

Update: this was caused by the fact that i didn't have a menu created in the menu page. I want to add a class to the ul of wp_nav_menu. I tried this code: <?php $defaults = array( ...
0
votes
0answers
23 views

How can I filter into the Wordpress back-end menu builder?

I would like to who the categories of custom post types in the wordpress back-end drag-and-drop menu builder. Is there a filter that I could use to add extra bits of markup there? My idea is to add ...
0
votes
0answers
80 views

Is a true MiniSite possible with WordPress?

I am creating a website that needs to have separate custom “portals” or “Sections” depending on which market you are in. Example situation: user lands on the home page. User looks at the top-level ...
1
vote
0answers
152 views

Split into two seperate unordered lists with custom walker

So I am trying to create a mega-menu using a custom walker through Wordpress. So far I have this for the walker: class oe_walker extends Walker_Nav_Menu { /** * Specify the item type to ...
0
votes
0answers
124 views

how to override menu widget?

I would like to customize the menu widget in sense to add some classes which would make it responsive. How do I override the default widget for menus? I use a custom template which supports bootstrap ...
0
votes
1answer
495 views

How to add menu support to a theme?

I tried few tutorials. All i think is i should use register_nav_menus() and then add the menu in header.php Here is the code i tried in functions.php from this help site itself function ...
0
votes
0answers
7 views

Privacy Blog, maybe? [duplicate]

I want to make this blog COMPLETELY private, however because I am so illiterate in the manners of technology I am not positive how it could be done. I read a blog where they said to find the options ...
0
votes
1answer
149 views

Top menu link anchor href value change after online server?

I was recently launch localhost server on my computer to create local website. If I create new link that add to top menu. The href value was http://localhost.com/something/something. Does this href ...
0
votes
2answers
173 views

Second menu has the first menu ID

I registered two menus top-menu and main-menu. I created two menu on the admin panel and assigned one to each (different items) But when I view the front end, I see that the two menus have the same ...
0
votes
0answers
20 views

How to use the WordPress header as the global header for apps across a site?

I am running Wordpress as the main site, and a few other php CMS apps for other specific purposes (let me call it subsites for the purpose of this question). Now when designing templates for ...
0
votes
1answer
177 views

My WordPress menu based on Twitter bootstrap creates menu-item and not page-item

I've got a dynamic menu being generated, but instead of generating a page-item it generates a menu-item. What I would like it to do is generate page-items and all the rest of it so that I can show or ...
0
votes
1answer
31 views

search form leads to 404

I'm using the follow code in my functions.php to add a search box to my primary nav menu - add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( ...
-1
votes
1answer
22 views

Adding a page and contents many questions with answers

I want to add page in my website and in that page I want to add question and answer regularly. And these questions will be found on the the added page only. How to do it? Do I have to add a post ...
0
votes
0answers
391 views

Adding CSS Classes to Sub items in Menus is not working

Ok, so this is the code I have to my Mega Menu that works with Bootstrap framework for Wordpress. For some reason, when I enter a class name in the backend of Wordpress > Menus > Sub item > CSS ...
1
vote
2answers
87 views

list pages only from master parent

I have a menu on a page that shows the children of a parent page, however, if a sub page is clicked on the children only of the sub page shows in this nav. is it possible to haver the direct children ...
0
votes
0answers
220 views

Adding 3rd level in custom walker

at present my custom walker works great :) but I can for the life of me get a 3rd level to appear... I can get the top level and the 2nd level dropdown to show perfect, but how do I achieve a 3rd ...
-1
votes
1answer
256 views

how to mage the submenu open on wordpress active page

i have the same problem in my website click here how i can change the code for when you click on corporate profile you go to the page and the sub menu stay open please some help
0
votes
1answer
27 views

How to change the menu like this?

Here is my wp_nav_menu: wp_nav_menu( array( 'link_before' => '<span><strong>', 'link_after' => '</strong></span>' ) ); I got a tag ...
0
votes
2answers
73 views

Add Labels to Admin Menu ( How To )

I have a custom post type menu called "Notes". It has two basic sub menus: add new and show all. But I want to add more items under these post type but the default array just gave me these. How can I ...
0
votes
1answer
642 views

WordPress wp get nav menu items does not deliver external link

When I read the nav items per wp get nav menu items the get_page_link( $id ) or $item->url does not give me the external URL I entered: http://www.mydomain.com. Instead I seem to get ...