Skip to main content

All Questions

Tagged with
47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
1k views

wp_nav_menu custom walker - child items

I have written a custom walker to integrate a jQuery drop-down nav script into my WordPress template. I need to add .dropdown-link to each of my parent menu items and .dropdown-wrapper to the ...
shotdsherrif's user avatar
2 votes
0 answers
437 views

How to extend nav-menu-item-control data in Appearance > Customize?

I have one question as for Nav Menu Items custom fields in the Appearance > Customizer screen. Since 5.4. there are 2 new hooks: wp_nav_menu_item_custom_fields - it works for Appearance > Menus ...
Nikita Sinelnikov's user avatar
2 votes
0 answers
602 views

Hide Login information in Account settings in Buddy Boss

First time working with Buddy Boss. I managed to customize the navigation items on the profile page, but I can't find a solution for the Account settings page. What I'm trying to achieve is to hide/...
Barnee's user avatar
  • 123
1 vote
0 answers
484 views

How to create left and right menu with logo center in a custom theme?

I recently developed a new custom theme in wordpress. I want the following menu structure: Left menu LOGO Right menu For example: Home About LOGO HERE Blog Contact I created the following code: <...
Aris's user avatar
  • 11
1 vote
0 answers
148 views

Add clickable arrows to parent menu items with children elements e.g. with <em>

I am currently working on a website with a custom theme where the following behaviour should be possible for the mobile version: The navigation can be opened via a hamburger button. Then all parent ...
lunian's user avatar
  • 11
1 vote
1 answer
26 views

How Do I Remove The Right Hand Block On The Main Header?

I want to expand the main header across the full width of the page. Currently, the surrounding colour block around the text box, seems to stretch above the top menu bar on the right, and it looks ...
Stephen Denman's user avatar
1 vote
2 answers
2k views

How to wrap the list with custom class using wp_nav_menu?

I want to display 4 column footer menu. but when I add new menu the wp_nav_menu create a < li > and add every menu items to it. now, how can I wrap every li element with a custom div tag with a ...
Jai Shankar's user avatar
1 vote
1 answer
753 views

Alphabetical Custom Menu

I'd like to create an alphabetical a to z to # custom menu on top of the regular menu. My website is about artists and lyrics. I'd like to have something similar to this menu structure. when you ...
Sapiroko's user avatar
1 vote
0 answers
127 views

Sub menu indicator that links to sub menu

I am trying to create a custom mobile menu for my wordpress site. I have looked around the net for an answer and found similar things or different ways that I can accomplish this but not in the way ...
DomCan's user avatar
  • 11
1 vote
0 answers
121 views

Navigation label for page in custom theme

In Appearance -> Menus, one can change a page´s navigation label. The label is what shows in the menus. However, i´m using a theme with a custom menu, always showing the full page´s title in the menu. ...
Gregor G.'s user avatar
1 vote
0 answers
427 views

Custom Navigation build using wp_nav_menu and walker

What I have Right now I have an old template in plain HTML. In there I use a custom Navigation menu built like this: <div class="collapse navbar-collapse main-menu main-menu-1" id="main-menu"> ...
ismaelw's user avatar
  • 123
1 vote
1 answer
130 views

pull non-wp site into content area of wordpress -or- pull wp header into non wp site?

I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages ...
matt's user avatar
  • 157
1 vote
0 answers
416 views

Help with walker for nav

For some reason, this walker won't work when I pass in 'echo ' => 0, it always prints the nav, and never returns the nav as a var. I can't seem to figure out where it's by passing that in wordpress....
Scott Phillips's user avatar
1 vote
0 answers
35 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
frank smith's user avatar
1 vote
2 answers
215 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 ...
binaryorganic's user avatar
0 votes
0 answers
22 views

How can I keep a WordPress dropdown menu open when navigating to a child page?

I'm using WordPress with the Astra theme (free version), along with Elementor Header & Footer Builder (free version) and the WP Mobile Menu (free version). I've set up a dropdown menu, but it ...
Maithilee's user avatar
0 votes
0 answers
120 views

Dynamic Menu Item

I'm a complete WordPress n00b, so your guidance is very much appreciated. Long story short I am running a theme with a child theme attached. I need a function that will retrieve my site's latest post ...
Christopher's user avatar
0 votes
1 answer
846 views

Display posts by alphabetical order

I just purchased a WordPress theme. I’m trying to sort post on one category into an alphabetical listing (glossary type of listing). Example : https://www.udiscovermusic.com/browse-artists/ There are ...
Marketboy's user avatar
0 votes
1 answer
272 views

Custom CSS Nav Menu Style Not Being Applied

I have created a plugin and custom CSS page to display a custom navigation menu on one page of my WordPress site. I am attempting to show the navigation menu using a Custom HTML block on the page of ...
B. J. Torreano's user avatar
0 votes
0 answers
25 views

Replace the page url with a menu link?

i want to make a multilangual site, where the secondary language is a copy of the site in a different folder. For example: Primary language url: example.com Secondary language url: example.com/en So ...
walacky's user avatar
0 votes
0 answers
259 views

Current menu item highlights wrong

The menu is with different types of links equipped. The first is a link to a subsite. The other is with to an anchor link. The problem is that the anchorlink is highlighted on the homesite. If I don't ...
hendrik-eg's user avatar
0 votes
0 answers
76 views

Add producthunt badge to wordpress menu

I'm new to wordpress and i want to add a producthunt badge to the menu of my wordpress site. I tried editing the page, tried in appearance->menu but could not find a place to include the block of ...
CraZyDroiD's user avatar
0 votes
1 answer
284 views

Woocommerce custom "My Account" Tab - Add Save button

I've added a new tab into my "My-account" page on woocommerce using a hybrid of the following: New Tab: Woocommerce add new tab to account page New Content to tab: Add content to tab I've been ...
Walshie1987's user avatar
0 votes
2 answers
955 views

Add custom WordPress admin page with pretty url via code

WordPress add_menu_page and add_submenu_page support adding custom page. The page created have url with a slug similar to wp-admin/admin.php?page=our-custom-page How can create a admin page which ...
BenB's user avatar
  • 795
0 votes
0 answers
369 views

Adding a drop-down (select tag) option under Menu Settings in WordPress Admin

I looked (surfed) around a lot to get idea of how can I add custom field/drop-down under "Menu Settings" in WordPress Admin. I want a select tag with options from which I can get value based on the ...
divy3993's user avatar
  • 103
0 votes
1 answer
36 views

Create survey that redirects to sidebar menu customized to answers

EXPLAINED: I want to create a survey for my users about who they are and what they most want to get out of my services. After the survey is completed I would like the users to be redirected to a page ...
Jasmine Vary's user avatar
0 votes
1 answer
19 views

How to add a template - so that i can choose a different menu for some pages

Hi I would like to know how I can add a template just to choose a different menu for some pages, Any help appreciated!
Naveen DINUSHKA's user avatar
0 votes
0 answers
51 views

How to create custom post type selection to nav menu

I added a custom post type in my navigation menu. with this code register_post_type( 'post_type_name', array( 'exclude_from_search' => false, 'label' ...
180690's user avatar
  • 181
0 votes
1 answer
284 views

Help needed creating a custom Hamburger menu in header

I’m hoping you can help me out. I’m working on adding an extra custom menu to my header. I would like this to be a hamburger menu with slide-in function which is visible (and working) on desktop and ...
susannahb's user avatar
0 votes
1 answer
27 views

Menu selection for header

I have created multiple menus. What I wish to accomplish is give viewers the ability to select which menu they want to use for the header. Closest ive gotten to is the conditional menu plugin but that ...
duga's user avatar
  • 1
0 votes
0 answers
69 views

How to create a custom menu for specific user

Hi it is a way to create custom menus for each user and user roles. Each user needs to have specific page.
user140169's user avatar
0 votes
0 answers
75 views

How to customize WordPress vertical menu?

I must make change view on the menu on the website, but I do not know how. Can someone help me, please? How can I make a hook in function for example or another method with edit CSS file? I want to ...
Nikolaii Donkov's user avatar
0 votes
1 answer
177 views

Creating a dynamic URL for an external link inside content

I run the website hightowerlowdown.org. We use an external CRM for email and donation management (SalsaLabs), and I'd like to be able to take advantage of some of the tagging features available within....
Deanna's user avatar
  • 1
0 votes
1 answer
345 views

After Wordpress 4.8 upgrade, wp_nav_menu() string search / replace not working

Before upgrading to Wordpress 4.8, I could do a string search and replace on the wp_nav_menu(). I had a few sites running 4.7.5 and code was working. Soon as upgrading code below did nothing. <...
Zcweb's user avatar
  • 1
0 votes
0 answers
1k views

WordPress menu walker - Get parent item text inside end_lvl function

I have a parent menu item which is taxonomy name. I want to add in a mega menu with a featured post from the menu taxonomy in the left of the sub menu. This code works and shows displays the html ...
BenB's user avatar
  • 795
0 votes
0 answers
91 views

HTML TO WP Theme : Submenu goes down wp_nav_menu

I have to convert a html to wp but there is an issue sub menu is not working properly.I am newbie but I have done something for that still not success. header.php Code <nav class="navbar ...
Vasim Shaikh's user avatar
0 votes
2 answers
1k views

Add a data attribute to list item element in menu

Looking to add a data attribute to a list item in a menu, I can see that some threads on here can add it to the actual <a> link tag, I am looking to add it to the list item itself <li> So ...
neilgee's user avatar
  • 163
0 votes
0 answers
33 views

How to work around the bug which prevents custom menus from being deleted?

A bug makes it impossible to delete a custom menu in the expected way: select menu, click Delete Menu. This has never worked for me on any WP site in any version of WP; it produces an Error 403 and ...
Patty J. Ayers's user avatar
0 votes
0 answers
991 views

Class .current-menu-item in custom menu Walker

I'm building a blog using a custom walker for my submenu which looks like this: class Submenu_Walker extends Walker_Nav_Menu { function start_el ( &$output, $item, $depth = 0, $args = array(),...
ronnyrr's user avatar
  • 373
0 votes
0 answers
91 views

how to display wordpress navbar with top menu outside wordpress system

i want to display my wordpress top navbar outside of wordpress system in one of my php site, so that whenever i change the wordpress navbar the changes will reflect on my php site. How to do that? I ...
Manindra Singh's user avatar
0 votes
1 answer
225 views

How can I pass value to function in add_menu_page?

I was use to pass value to function for the below menu. add_menu_page('Competition Manager 2013-2014', '2013-2014', 'manage_options', 'manager_2013_2014', 'manager_2013_2014', plugins_url( '...
sanilts's user avatar
0 votes
1 answer
357 views

"Current" class on a singular page menu item with custom post types?

I'm struggling to get a "current" class for the corresponding menu item when I'm on a singular (child) page of a custom post type. These are the arguments I used when registering the post type with ...
Max's user avatar
  • 1
0 votes
0 answers
53 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 ...
user3191930's user avatar
0 votes
0 answers
389 views

How to get the count for each taxonomy term

I know it is $term[0]->count; However, my terms are placed in the custom menu plugin. My terms are currently structured as Parent Child Parent Child How do I append the term count of each ...
sublimelaconic's user avatar
0 votes
1 answer
173 views

How to create an user defined page?

I have created a file example.php in the default site directory. I want to have the facilities of an Dashboard-Created-Page like the theme,navigation bar,navigation bar, header,footer etc..
Mohammad Mahmudul Hasan's user avatar
0 votes
2 answers
55 views

menu customization

I am using a premium theme on my page. The theme only accepts one menu in the whole site. The site is a single page site. And the way the theme works is that we have to set up a Home Page and then ...
John's user avatar
  • 1
-1 votes
1 answer
188 views

Custom CSS File wont work on second Page

i created a custom Theme in WordPress and everything is working fine and the CSS is loading to my index.php. So now i copy-pasted the index.php and renamed it, then i went to the indexCopy site and ...
yama_HD's user avatar
  • 111