Questions tagged [menus]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Header displaying for mobile in elementor dashboard is different than coming on mobile

I have used this theme(https://themesgavias.com/wp/vizeon/) to create my website(https://talbizsolutions.com). I have created a header in the header builder but it is somehow not showing up on the ...
1
vote
0answers
11 views

Reuse a custom WordPress menu on another WordPress website

My WordPress website consists of two separate WordPress installs (one lives in a subdirectory). From a visitor's perspective it feels like one single website. To achieve this I had to manually ...
0
votes
0answers
16 views

Navwalker not applying the custom css classes on menus

I'm using the Bulma Framework and wanting to implement a mega menu onto my WordPress site, but I can't seem to figure out how to adjust my Bulma navwalker so that it can accept custom css classes that ...
0
votes
0answers
9 views

How can i put my menu to the bottom aligned with logo ( bottom of logo) or in center (center vertical) in center of logo

How can i put my menu to the bottom aligned with logo ( bottom of logo) or in center (center vertical) in center of logo. Theme OceanWP
0
votes
0answers
13 views

How to change the menu icon of a custom post type created using pods framework?

I have created a series of customs post types using pods framework, now I would like to change the default icon that is assigned in the menu Right now this is what I get, but I would like to assign a ...
8
votes
0answers
93 views
+500

Add settings to menu items in the Customizer

WordPress 5.4 added the wp_nav_menu_item_custom_fields_customize_template hook to add custom fields to the Nav Menu Item settings in the customizer. I've figured out how to display the additional ...
0
votes
1answer
19 views
+50

Position image widget in mega menu

I need to add image in mega menu. So I have added image widget in menu. How can I reposition this widget. Currently my menu is showing like this. But I need image only in the right side, and sub ...
-1
votes
1answer
13 views

How can I create a navigation menu in the sidebar that can also act like a slider?

I am trying to create a page with a series of lesson/tutorial and looking to have something like a menu on the right/left side bar so the access to the topics are easier. Something like in the page ...
0
votes
1answer
21 views

How to remove empty <a> line space in navigation menu?

I have a custom link(user manual) going on in my navigation menu. I leave the original <a> empty and link a automatically download pdf under navigation label area. Now my menu has an empty space ...
0
votes
0answers
12 views

How do you show horizontally the submenu in WordPress using the nav walker?

I've added a nav walker in my wordpress theme. It looks like this: Functions.php * Register Custom Navigation Walker */ function register_navwalker(){ require_once get_template_directory() . '/...
-1
votes
0answers
8 views

How to add mouse-over popups to menu items?

In WordPress, how to add mouse-over popups to menu items?
-1
votes
0answers
21 views

Parse error: syntax error, unexpected 'dbp_tb_branch' (T_STRING) in wordpress

I am creating plugin which is not showing on admin menu. I don't know what happened. <?php /* *Plugin Name:Arsh Forms *Author:Arsh Venveru * *Description:Create forms. *Version:1.0.0 *License:GPL2 ...
0
votes
1answer
18 views

How to change the navigation menu

I am fairly new to wordpress but i am having trouble working out how to customise navbar .I have added a new page.I created a new about us page.How to change the navigation bar of my about us page. ...
0
votes
0answers
9 views

How to add the standard cart widget from twentytwenty in the expanded menu header

looks good this standard widget from twentytwenty but how do i add this in the modal menu instead of this
0
votes
1answer
17 views

Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?

I am trying to add the featured image of posts to my mega menu. I want to display the featured image inside a div tag. How would i add the featured image inside of a sprintf function? $thumbnail = ''; ...
1
vote
0answers
29 views

Menus don't appear in admin area / WordPress Multisite

I have a WordPress multisite with different subdomains. My problem is, that I can´t edit the menus. The number of the existing menus is displayed left under the languages part. But I always get the ...
0
votes
0answers
16 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 ...
0
votes
0answers
27 views

3 Level Menu Navigation (3rd Level not displaying)

I am using wp_nav_menu on my wordpress theme but I can seem to figure out how to display the last level on my menu navigation. I would like the last level to display on hover of the parent item. Here ...
0
votes
0answers
15 views

500 Internal server Error (nothing are adding in navigation menue)

I am using latest version of wordpress with Lapa theme . I installed plugins like Smush,Swift,WP fastest cache and Gtmetrix. Now when I go to Appearence-> Menue and add desired or randomly Links ...
0
votes
1answer
15 views

How to truncate menu label in wordpress?

I want to truncate the menu label to 10 characters, and if the header label is more then it will show 10 characters followed by ... For example: Menu Title: ABCDEFGHIJKLMN It should display the label ...
-1
votes
1answer
16 views

How to load css file in my menu in wordpress

Anyone know how to load css file in my menu in wordpress. use this but it didn't work function wmt_theme_style() { wp_enqueue_style( 'bootstrap-styles', get_template_directory_uri() . '/css/...
0
votes
0answers
9 views

add_submenu_page - cannot change slug

I have a problem in my plugin adding a submenu. It works as an administrator user, but if I run as a user who is not admin, it will not work. I am adding my menus as below. add_action( 'admin_menu'...
1
vote
0answers
18 views

Header Button Chance Polylang Elementor

Currently, I am making a Bilingual website, and I made a button on the header as well, and I want to make the button bilingual as well, but I don't know how could I change its language because it is ...
0
votes
0answers
12 views

Under My Sites Menu, I can find only one of my Sites, and it is duplicated

I have WP Multisite. I have only two Sites. The main one, and a second Site as a subdomain ( EN.mydomain.com ). The problem is, if I am in my main site, I can find both Sites under MY SITES menu. But ...
0
votes
0answers
21 views

Adding menu title to custum URL

I want to customize my url rewriting this way : urlhome/MenuTitle/PageTitle. Is there a way to do it?
0
votes
0answers
13 views

Sub Menu Do Not Appear in Homepage

i have a problem here, i try to make 3 level navigation menu, but only 2 of 3 navigation menu are showing. This is my homepage When i try to inspect element from browser, i saw the sub menu. I try ...
0
votes
0answers
24 views

Need to remove the admin menu item from a be theme in wordpress

I need to remove the few admin menus of BeTheme from admin wordpress menu. Although this code works (when added to functions.php) for usual wordpress admin menus add_action( 'admin_menu', '...
0
votes
0answers
21 views

Go back to the exact post page number

I use pagination in my index.php and I have many posts per page. Every post have a button to go back to home. The problem is that when I visit a post in a page 5 for example, the button always send me ...
0
votes
0answers
16 views

How to filter menu of categories on attribute archive pages

The following PHP displays menu of WooCommerce product categories: <?php $orderby = 'name'; $order = 'asc'; $hide_empty = true ; $cat_args = array( 'orderby' => $orderby, 'order' ...
0
votes
1answer
30 views

How to add class to specific navbar item when post parent category is in specific category

I have website with pages which are named the same as categories. For example I have page called Cities and also I have category called Cities. I want to add class to navbar item when user is reading ...
0
votes
1answer
30 views

How to add CSS class to <li> and <a> and id in a nav menu with code?

I have registered nav menu. here is the code <?php wp_nav_menu( array ( 'theme_location' => 'top-menu', ...
0
votes
0answers
9 views

highlighting navigation issue (custom post types & pages)

I have an issue which i cant wrap my head around, as im lacking knowledge. Wordpress is in this instances not generating any specific class that i could address and this is my problem, NOT the CSS. I ...
0
votes
0answers
13 views

Mega Menu Walker Add Description

I'm using a custom walker to display a mega menu. I've enabled Descriptions in the menu admin but I can't get it to display in my menu. My description is on the parent item but I need to display it on ...
0
votes
1answer
10 views

Parent Menu Item Requires Two Clicks for Mobile Device

I don't know what's what wrong with my parent menu items. I have two that aren't working on the first click on mobile devices (I've been testing this on my android phone). To make it look mobile ...
0
votes
0answers
13 views

Update JavaScript by refreshing menu in wordpress customizer

In Wordpress customizer adding or removing a new menu item refreshes that area, removing decorative details that I add with JavaScript in the preview. As seen in the image: Put this code so that ...
0
votes
1answer
18 views

Nav menus all outputting the same links

I have registered the following menus in my functions.php // register menus function register_menus() { register_nav_menus( array( 'footer-01' => 'Footer 01', '...
0
votes
0answers
7 views

How to add html attributes to wordpress menu <li> that have sublists

I want to code bootstrap collapsing navbar for wordpress menu. I found that how can i add html attributes in this link but i don't know how to add html attributes just to <li> that have submenu ...
0
votes
1answer
16 views

How can I creat custom menu with bootstrap

I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as data-toggle. After researching, I found that must customize the Walker class but ...
0
votes
1answer
36 views

is MariaDB error related to Automatically add new top-level pages

I ran some checks on RAM on my machine and discovered this error "Error: (06/14/2020 12:45:54 PM) (Source: MariaDB) (User: ) Description: mysqld.exe: Table '.\test\wp_usermeta' is marked as ...
0
votes
0answers
42 views

child theme automatically adds new page to top menu instead of only custom menu

In my child theme I have top navigation and custom navigation (archive menu). When I add new page to archive menu, same page gets added to top nav. In the admin top nav doesn't show new page though,...
0
votes
0answers
9 views

How to apply a class to nested sub-items of a menu?

I am trying to replicate this drop-down menu in a Wordpress theme: But I've spent my whole week to only get this result: (The sections items are properly handled, but their sub-items are a mess! "...
0
votes
0answers
15 views

Combine a category and a custom taxonomy in one menu item

I have created a custom taxonomy for my posts named 'type-of-article'. I also use the standard taxonomy 'category' How can I create a navigation menu item that shows the posts belonging to an ...
0
votes
0answers
4 views

Add text before anchor link for product menu item type

I'm working on a nav menu that includes WooCommerce Products for part of the menu items. I am looking to add the WooCommerce thumbnails to the menu items that are products, but I can't seem to find ...
0
votes
0answers
11 views

By default header menu is taking footer menu as Id and displaying footer menu in header too

Here is my functions.php code <?php register_nav_menus( array( 'primary' => __( 'Primary Menu', 'akeo-tech' ), 'footer' => __('Footer Menu', 'akeo-tech'), 'mobile_header' => __('mobile-...
0
votes
1answer
39 views

Search if menu item has child in wp_get_nav_menu_items hook

I am conditionally showing menu items. All is fine but want to remove parent item if returning no child items. For example if I have a parent menu (it will always be a custom link with #) called ...
0
votes
1answer
59 views

Secondary Menu and Logged In Users

I'm using the below code to display two different menus in my storefront based child theme based on a users logged in status. But When I have a secondary menu (links by the search bar) it is replaced ...
2
votes
0answers
51 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 ...
0
votes
1answer
32 views

Change hover to onclick on menu

I've got a local website on WP using DIVI where a header menu got some "menu-item-has-children". In way to view these sub-menu, I just have to hover on it and when mouseout the sub-menu disappear. ...
0
votes
0answers
8 views

How to show item automatic from in horizontal mobile menu

<div class="hr-nav-1"> <nav class="nav-container"> <a href="#!" class="nav-item">Latest</a> <a href="#!" class="nav-item">Trending</a> <a href="#!" ...
1
vote
1answer
20 views

How to dynamically populate a dropdown

I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are ...

1
2 3 4 5
61