All Questions
Tagged with navigation-bar or menus
3,220 questions
0
votes
0
answers
9
views
Post Navigation Elementor
I'm using Elementor and ACF on a website and have a custom post type for events. In elementor I have the posts on the archive page set to order by the ACF start date field. When the user clicks the ...
0
votes
0
answers
20
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 ...
1
vote
2
answers
47
views
How do I have WordPress use the <menu> tag for generated menus?
As the formal enclosure for menu items is the <menu> tag how to I make WordPress use the <menu> tag as a wrapper around menu items instead of the more generic <ul> ?
EDIT: I believe ...
0
votes
1
answer
16
views
Managing menus in "The Store" theme [closed]
Here https://www.softedu-magazin.ro/ I have 2 menus. Can't rid off the upper one despite all my efforts. If I hide items from one menu they disappear also from the other.
Any ideea please?
0
votes
1
answer
35
views
adding an options menu that allows saving multiple sets of said options
There are several good examples and tutorials on how to add an options menu to a plugin. (Many of these seem confusingly old though, but that's another thing, I'm assuming stuff from 15 years ago ...
0
votes
1
answer
31
views
Primary menu item is not highlighting when page is active even though it is linked from a url with query string to pre-populate a form field
I'm using the WordPress Astra theme. I have set Astra customization to highlight the active page primary menu item in the navigation bar. However, when I link to the "Contact" page using an ...
0
votes
1
answer
52
views
How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
I'm working on customizing the admin sidebar menu specifically for the WordPress Multisite Network Admin area. I want to add a new top-level menu called "Header Builder" and some submenus ...
0
votes
0
answers
14
views
Whenever I add, modify, or remove a menu, my WordPress website does not update unless I perform a CSS regeneration. How can I address that problem?
My question is:
Whenever I add, modify, or remove a menu, my WordPress website does not update unless I perform a CSS regeneration. How can I address that problem?
0
votes
0
answers
12
views
Link from outside website or another page to a text widget title
I have a conference theme running on Wordpress, in the main page which is named as FrontPage, I need to add a link in the menu bar to one of the text widgets on the page.
I do not know how to target a ...
0
votes
1
answer
22
views
How to highlight blog page menu item for blog posts?
My site has a static front page and a separate blog page titled "Journal." The permalink structure is "/journal/%postname%." I want the "Journal" menu item to be ...
0
votes
0
answers
12
views
Menu item on a category
I read your post on how to create a menu based on category, but it displays all the posts in their entirety instead of just get the title as a link.
I now have only some 12 posts in a category but ...
0
votes
1
answer
20
views
conditional menu with custom fields
currently i have, as custom field on buddypress registration, the option to register as User Type A or User Type B.
I want to show a menu for user type a and another menu for user type b.
How can i ...
0
votes
0
answers
17
views
Dropdown Menu ONLY Appearing When Logged In - Not even a button
I'm having a problem where the hamburger drop-down menu only appears when I'm logged in, I tried on multiple devices and I tried clearing the cache and removing all plugins.
https://localbridalexpos....
0
votes
0
answers
37
views
Account Status/Login on Main Menu with Avatar Pictures
How are you doing today?
I'm currently working on my eCommerce and I can't seem to find any tutorial about this, so I decided to give it a shot around.
I got this Menu (see picture) working great ...
0
votes
0
answers
20
views
Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
I am using the WP_bootstrap_navwalker for a dropdown menu that opens to the side . This works fine, but it only shows me the first and second level items, i want it to show the third and fourth level.
...
1
vote
1
answer
28
views
why did the homepage button go down from the row of other menu items when I deleted text within the navigator information?
I deleted text within the navigator information (marked in yellow below) to delete text in the header of the website.
Why did the Homepage button (marked in red below) go down from the row of other ...
0
votes
0
answers
41
views
wp_nav_menu_items callback not triggered
I display the menu so:
<?php wp_nav_menu(array('theme_location' => 'primary'));?>
I am trying to edit it, in my functions.php file I have:
add_filter('wp_nav_menu_items', '...
2
votes
1
answer
40
views
Can't assign menu parent id or menu item breaks
I try to create a menu item for every new product category created, but it just creates an empty custom menu item (in the right place). If I however don't assign a menu-item-parent-id it works fine (...
0
votes
0
answers
41
views
How do I highlight a Wordpress Menu Item for a page that is not on the Menu?
I am writing a Wordpress site using the block editor (Spectra One theme).
I have a menu item called News. When I click on it the News page appears and the News menu item is highlighted.
The News page ...
0
votes
0
answers
15
views
Header not showing in new pages
new pages that I have made and added to the menu do not have the header showing. The pages are accessible via the menu, there seems to be nothing wrong there, but the new pages do not have the header ...
1
vote
1
answer
30
views
What is considered good practice for registering menu locations?
I decided to try my hand at creating my own WP theme from scratch. I've made a header, a navbar, and a footer so far. I've also registered a couple menus, so my navbar will be populated automatically ...
1
vote
1
answer
70
views
In WordPress, I want to use code to filter out one menu item (page) from displaying when I call wp_nav_menu() function
Scenario
I have three pages namely John James and Jessica.
The Jessica page ID is 666 and I want to filter it out so that it DOES NOT show in the menu.
I need help with a simple code similar to the ...
0
votes
0
answers
19
views
Add URL parameter to nav links based on domain
I use a suite of third party platforms and want to automatically add a ?source=web-nav parameter based on the link's domain. Is it possible to do this via functions.php?
0
votes
0
answers
34
views
Drop down menu that updates block content
I want to have a drop down menu/list as part of the content of a specific page where you select a country and the content of that section of the page updates with country specific content. So when you ...
0
votes
1
answer
77
views
Hide product categories if empty by leaving them positioned in the same place in the menu
Hello, I integrated this same code to hide a category when it is empty and it works well. But I would like it to be positioned in the same place when a product is added again. Today, it is positioned ...
0
votes
0
answers
20
views
Images and menu links disapearing after saving
I am using Wp Bakery on a salient theme and have a bug where images or background images on 2 specific pages don't save or show once added.
This also appears on the menu widgets, I will add a custom ...
0
votes
1
answer
51
views
trying to change color of an SVG icon (responsive Menu) in WordPress Theme "Clean Portfolio"
I've tried everything to change the color of SVG Icon, within the theme Clean Portfolio.
So far nothing works! The button has the id: primary-menu-toggle, within this there is the Svg class: icon icon-...
0
votes
3
answers
57
views
Only display nav menu if it is populated with menu items?
This is a follow up question to a few related threads. How can you display a wp_nav_menu in WordPress only if it has menu items already assigned? Because has_nav_menu does not seem to be enough here, ...
0
votes
0
answers
25
views
There is no option to click the button in header only on some pages
I have tried to solve this problem on my own but nothing works for me.
1 scn - On the main page https://customqualitymanufacturing.ca/ when hovering over the Products button in the header everything ...
0
votes
2
answers
20
views
How to build help pages similar to Wordpress Developer Resources
We need to build a help page similar to Wordpress Developer Resources (see the screenshot below). We're problably looking for a developer solution as we haven't found any plugin that would fit our ...
0
votes
0
answers
12
views
add_submenu_page add multilevel menu
Im using:
// wp-admin hotels list in sidebar
function add_custom_submenu_under_add_new() {
$args=array(
'post_type' => 'hotel',
'posts_per_page' => -1,
'post_parent' =...
0
votes
1
answer
26
views
Show shortcode output in menu
I would like to show shortcode output in menu like below.
How can I do that ?
0
votes
1
answer
20
views
Show a text in menu
I am trying to show a custom text in menu. I am using below code on functions.php of current theme.
add_filter( 'wp_nav_menu_items', 'add_search', 10, 2 );
function add_search( $items, $args ) {
if ...
0
votes
0
answers
16
views
How to organize the header elements, so that it doesn't come out differentin mobile view
Hi this is the website where its been stacking the columns in mobile view.
https://ebenmission.org.au/
Because there are so many elements, I've been manually adjusting it rather than editing it in a ...
0
votes
0
answers
72
views
Off-Canvas Menu Toggle Issue After WordPress Core Update
After a recent WordPress update, I've encountered an issue with the toggle functionality of my off-canvas navigation menu. I'm using my custom-built theme, built on Twenty Twenty Three theme.
The ...
0
votes
1
answer
22
views
Redirect Issue on a link from the client side
I have implemented header menu using the WordPress menu tab and it is working correctly on my local pc but client from usa and other countries have frequently complaint that the sales button on the ...
0
votes
2
answers
154
views
Hide menu items from not logged in users
I have a theme which automatically adds all published pages to the menu. Is there a way to override this and add some of the pages only when the user is logged in? I thought maybe there is a filter ...
0
votes
0
answers
49
views
Menu drop down covers contents of page in Mobile view
Hi folks I want to try fix my menu. When on a mobile device I click the burger menu. Its expands but it partially coves up the contents of my pages or posts.
Is there a workaround for this ?
The ...
1
vote
0
answers
23
views
Is there a way to eliminate flyout menus when adding a post?
It seems like each new version of wordpress adds more intermediate menus and menu options than the previous. Particularly heinous examples include the Preview button with its form-factor checkboxes, ...
0
votes
0
answers
63
views
How to replace hamburger icon with "Menu" text?
My client has asked me to replace the hamburger icon in the mobile menu with the text "Menu", because he finds it more intuitive.
I'm using the WordPress theme Kumle. In the file "...
1
vote
0
answers
24
views
Custom loop menu is not working
I am using the below code to create a custom WordPress menu for mobile. With this code, nothing is return. Even the menu is not retrieving. Can anyone assist me with this? This is a multilingual ...
1
vote
0
answers
16
views
Wordpress menu disappears in category pages
I have a custom query to order and display posts in my functions.php, and I noticed that the navigation menu disappear in those categories!
function my_filtro_ed_ordine( $query ) {
if ( ...
0
votes
0
answers
30
views
How to Remove Parent Page menu slug from WordPress Submenus?
By default, WordPress adds a parent menu slug to submenu items if there are three or more nested submenus. I want to remove that.
For example, in the above case, the "service" menu has ...
3
votes
2
answers
214
views
How to get and set post meta for core/navigation-link?
I'm extending a plugin that updated nav menu items with post meta data. This was previously done via Appearance>Menus and Appearance>Customize using wp_nav_menu_item_custom_fields and ...
0
votes
1
answer
117
views
How To Create Footer Menu Location For The Latest 2024 Cirkle Theme
The theme that I am working with is Cirkle Theme. I am not a coder and with very limited tech experience with wordpress site building.
I created footer 1 and footer 2 Menus but there is no footer ...
1
vote
0
answers
90
views
Is there any documentation on JS trigger for the Gutenberg "Navigation" block?
I'm trying to programmatically trigger the close function on the Navigation block (I'm using swup and want to have the nav close when a new page dynamically loads). I see that it's using the ...
0
votes
0
answers
76
views
make my custom theme support polylang plugin
I created my own custom theme with wordpress and now I want to add english language to my site (defualt is persian rtl). for this I installed polylang. I create menu in wordpress like this:
functuions....
0
votes
0
answers
24
views
Why is wp_nav_menu() not removing the container around the nav <ul>?
I am trying to remove the <div> that wraps the <ul>, but when I set 'container' to false or '' the <div> still shows up. Why is it not being removed?
Example with false:
<nav id=&...
0
votes
2
answers
29
views
Trying to add CPT to menu automatically
Ok found this code here by PRESSWORD
add_filter( 'wp_get_nav_menu_items', 'cpt_locations_filter', 10, 3 );
function cpt_locations_filter( $items, $menu, $args ) {
$child_items = array();
$...
0
votes
0
answers
80
views
How can I display different menu for logged in users using a block theme
I am trying to display a different menu for the logged in users. The problem is that the classic wp_nav_menu_args filter does not work for block themes. Or I can't make it work.
Does anybody know how ...