Tagged Questions

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)

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
144 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
118 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
449 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
145 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
166 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
170 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
30 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
384 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
84 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
201 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
235 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
26 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
70 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
622 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 ...
0
votes
1answer
76 views

Creating and populating custom nav menu (menu-item-position not working)

Im automatically creating pages with the below code, after that I create a custom menu and insert all the pages to this menu. $create_pages = array('Home', 'About', 'Contact'); // there will be more ...
1
vote
1answer
118 views

How to add menu to Dashboard that can be viewed by all users

I am able to add Menu to the Dashboard using the below code, it can be viewed by an administrator. That menu doesn't appear when logged in as an Author or a Subscriber. How to make sure every user can ...
0
votes
0answers
167 views

Need a conditional div in custom Walker function for wp_nav_menu()

I have used wp_nav_menu() for my custom WP sites with Custom Walker Function which is working fine and providing me below output: <div id="navbar" class="navbar-collapse"> <ul ...
0
votes
1answer
24 views

Odd spacing in Navigation Bar [closed]

I am in the process of redesigning my website, and i'm struggling to find what is causing spacing (margins i'm assuming) between navigation items. I have been delving through chrome developer tools ...
-2
votes
1answer
1k views

Changing when mobile menu is displayed

Wordpress seems to be displaying the mobile menu (in Twentythirteen at least) at 643px wide, however i need it to activate at 767px. I cannot seem to be able to find what activates the menu at 643px, ...
0
votes
0answers
60 views

Automatic menu creation for pages with categories?

This may be a stretch, but I have a site that has a large number of pages, and i've given the pages categories (with a plugin that let me add categories to pages). I now want to create a sidebar menu ...
0
votes
0answers
17 views

How to gather all the pages associated with a template on a register post type?

I am creating a menu in the admin of wordpress, I have pages that are catalogs on two user images load; example I have the catalog A where user pictures load and price of a product a catalog B where ...
0
votes
0answers
30 views

custom rearranged menu with excerpt for selected children in sidebar.php

I'm trying to make a custom index menu on the sidebar for an editorial multisite wordpress website. Suppose my pages are as follows: Level 1 Level 2 Level 3 Level 3 Level 2 ...
0
votes
1answer
612 views

wp_nav_menu not highlighting the current category when viewing a single post

My WordPress site has a bunch of posts, all filed by a top-level category and a bunch of subcategories therein. I have the main site nav rendering the category pages, which, when clicked, get all ...
0
votes
1answer
81 views

Registering menu with 'Automatically add new top-level pages to this menu' selected

Is it possible to register a menu inside of a theme functions file and have 'Automatically add new top-level pages to this menu' pre-selected? I can't find any info about this in the ...
0
votes
1answer
63 views

How to change menu order item

Hello I have a main menu in my website Home | How to start | about | contact | categories but I add one item that lists all categories in functions.php add_filter('wp_nav_menu_items', ...
0
votes
0answers
11 views

When using a cache plugin I destroyed a menu structure [duplicate]

Now I cannot add any menu entry to my main menu structure, possibly because I attempted to modify it using a cache plugin. Anybody knows how I can fix that and make the menu editable again? Thank ...
0
votes
0answers
24 views

menu entries are lost

Suddenly I cannot add any menu entry via the "Menu" settings option (....wp-admin/nav-menus.php). Any new menu I set results in de-selecting the currently selected menu and saving a "null" menu ...
0
votes
1answer
259 views

Dynamically get the meta key value of a menu item based on it's post ID

I have a menu, that I need to insert an image that have it's path saved in a meta key (_menu_item_img) and associated with a post ID, every menu entry has it's own image, and I need to grab it ...
0
votes
2answers
127 views

wp_list_categories in in nav_menu

I have a website and I want to add automatically categories to my menu. I mean when I create new category it should appear in my menu. How I can make it? <?php wp_nav_menu( array( ...
1
vote
0answers
25 views

Allowing HTML in Menu Descriptions

This has been answered elsewhere, but I am having a problem with the code. I'm using this: remove_filter( 'nav_menu_description', 'strip_tags' ); add_filter( 'wp_setup_nav_menu_item', ...
0
votes
1answer
29 views

Show subpages of a category in a custom menu

I have added a post category to a custom menu through Admin. But when it shows, it just shows the category name, and does not show the posts inside the category. Is there a way to add an args; that ...
0
votes
0answers
344 views

How to add class to parent a tag with a sub menu

I have been trying to add a class to the parent a tag of a sub menu using a custom walker. The current walker I am using adds the class to the parent <li>, does anybody know how to adjust this ...
0
votes
0answers
220 views

Custom Walker function need to customize in a specific way for wp_nav_menu in Wordpress

I have used wp_nav_menu() for my custom WP sites with Custom Walker Function which is working fine and providing me below output: <div id="navbar" class="navbar-collapse"> <ul ...
1
vote
1answer
59 views

Remove all nav menu classes ( but keep useful ones… )

I'm trying to remove all menu-item classes (except for .current-menu-{item/parent/ancestor} and .menu-item-has-children) function custom_nav_menu_css_class($classes) { $classes = ...
4
votes
4answers
589 views

Any walker causes blank menu?

Using the following, or any other custom Walker_Nav_Menu seems to cause a blank navigation menu, I tried specifying the default to make sure I wasn't going crazy yet it still blanks the output... Any ...
0
votes
1answer
27 views

When filtering query on custom taxonomy; main menu dissapears

I have created a custom taxonomy, and that works. But here is the problem; I have created an archive page, which in the url gets e.g. this: ?category=23. Then, in functions.php, I do this: function ...
0
votes
1answer
207 views

How can I add a Categories page link to a menu? [closed]

Not a link to a specific category, but a link to a page that lists all categories of a custom post type (WooCommerce Products).
0
votes
0answers
16 views

Posts in nav menu

Hello I'm making menu and I want to add element of menu and in this element submenu which posts name and links to this posts. For example I have item menu called A->link1 to post link2 to post ...
1
vote
2answers
4k views

How to add active class on current menu item page?

I have two links: Products and News. When i click on Products or News, it returns me an archive page that contains some posts, when i click on a post it returns me a single page of this post. In the ...
0
votes
1answer
195 views

Does this function wp_get_nav_menu_object check if a nav menu exists or is supported?

function wp_get_nav_menu_object( $menu ) { if ( ! $menu ) return false; $menu_obj = get_term( $menu, 'nav_menu' ); if ( ! $menu_obj ) $menu_obj = get_term_by( 'slug', $menu, 'nav_menu' ); ...
0
votes
2answers
75 views

Can I have a different menu for each parent page?

I have 4 different menus on my website. Right now I'm using the solution to a problem I posted here in order for the menu to display using the CSS framework I'm making use of. Each of these menus ...
0
votes
1answer
106 views

Automatically add child pages to menu

I've been reading through some of the questions and solutions people have already asked to no avail. I have 4 menus on my WP Site, each of which will have children. What I would like the menu to do ...
0
votes
1answer
214 views

Add third level menu on wordpress

I would like to add a third level menu on WordPress. This is the code I've added to the functions.php file to create the secondary menu, but when trying to repeat the same code with a third menu, I ...
0
votes
1answer
49 views

Add Menu Item in Specific Order

I am using the code below to add a Login/Logout menu item to WordPress programatically. I am trying to figure out how to specify the placement of this menu to be in the #2 position. IE - Main Menu ...
0
votes
0answers
75 views

Customizing Walker_Nav_Menu - Trunicating spaces

I've just started learning to code WP themes pretty much from scratch and I'm trying to figure out how to pass a variable thru a customized Walker_Nav_Menu but without any ascii spaces. The goal is ...
1
vote
3answers
1k views

Adding Additional Menus In Genesis Child Themes

I have a Genesis child theme that I bought, and it only supports two menus, a primary and a secondary. However, for what I would like to do with my site I need to have 6 menus all together. This is ...