Questions tagged [wp-nav-menu-item]

59 questions
1
vote
1 answer
0
votes
3 answers

Wordpress how to change the way that register_nav_menus outputs menu items

I was hoping someone could help me .... I want to change the way that wordpress nav_menus outputs the menu listing. Currently it outputs the following for example:
0
votes
0 answers

Adding a div affter Ul menu in wordpress meue using navwalker

Hi everyone been away from coding now im learning WordPress, I came a cross bootstrap 5 menu and wanted to converted to wp_menu, basically i want to add an extra div after element the code:
0
votes
0 answers

How to create in Walker nav menu custom elements

Ive created already custom Walker Nav Menu in WordPress, but now I need to create an custom element on submenu like that with custom edit of this fields text and buttons https://i.stack.imgur.com/w6WQH.png Trying this code, but it didnt show me my…
Georgy
  • 1
  • 2
0
votes
1 answer

classList is only affect the first li in the ul despect the fact that all the elements where selected

classList is only affect the first li in the ul despect the fact that all the elements where selected. document.addEventListener("scroll", function() { const headerChangejh = document.querySelector(".nav-link"); if (window.scrollY > 0) { …
Kiki-ko
  • 1
  • 5
0
votes
0 answers

Add class to wp_nav_menu

I'm trying to insert the below class into a wp_nav_menu. The class goes inside the
  • elements. \
    Fay Kay
    • 45
    • 4
  • 0
    votes
    1 answer

    How do I change the Sub-menu to Ordered List in Wordpress

    I want to change the default WordPress sub-menu unordered list (ul) to an ordered list (ol) to something like this: to I know I can do this with JQuery, but I will prefer a non-JavaScript…
    Sam
    • 355
    • 1
    • 16
    0
    votes
    0 answers

    Trying to make a custom nav menu for with an image that opens and the menu is inside

    Trying to make a smiliar stickied menu like found here: https://alisabethdesigns.com/2017-5-9-free-tools-to-automate-your-workflow/ I want to put my logo and it opens up into a menu. Without it being full screen and pushing down the rest of the page…
    0
    votes
    0 answers

    Dynamic nav menu with icons

    I want to convert this HTML site to Wordpress using Elementor. as you can see all navbar links have their own icons, I can design it by sepread icon and text below it but also I want it to be dynamic (can be managed in WP nav menu page) is there any…
    Amin
    • 31
    • 5
    0
    votes
    0 answers

    WordPress - Nav Menu toplevel does not act as link

    I'm very new to WordPress and don't know much about CSS and stuff, so I already apologize in case I'm missing basic information. It might be a silly question, but still: how can I make the toplevel of my navigation menu be clickable links instead of…
    s6hebern
    • 725
    • 9
    • 18
    0
    votes
    0 answers

    get parent element title using wp_get_nav_menu_items

    I need the parent element's title as a variable and also the submenu of it. Currently I have: function navigation_footer() { $menu_name = 'footer_nav'; if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) { …
    0
    votes
    0 answers

    Displaying a Custom Avatar in Wordpress using wp_nav_menu_objects filter hook

    Am creating a WordPress site whereby am enabling users to upload their own custom avatars using a Plugin called One user Avatar. The upload functionality is working fine I want the image to be shown as an avatar when a user logs in. This should…
    Pweb
    • 155
    • 1
    • 4
    • 18
    0
    votes
    0 answers

    How to set parent custom classes in wp_nav_menu - WordPress

    I am trying to emulate the following navigation using wp_nav_menu ( https://developer.wordpress.org/reference/functions/wp_nav_menu/ ) in WordPress. My demo menu structure: Menu >child1 >child2 >>submenu1 >>>subchild1 >>>subchild2
    User301276
    • 55
    • 1
    • 8
    0
    votes
    0 answers

    How to get submenu items from a WordPress menu based on parent or sibling

    I would like to create a sidebar navigation, where you can click on the parent category to open the subcategories up to the 3rd level. – Parent – – 1st level – – – 2nd level – – – – 3rd level – Parent – – 1st level – – – 2nd level – – – – 3rd…
    0
    votes
    0 answers

    Changing Parent ul by wp_nav_walker

    Is it possible to create a navigation menu with div instead of using ul li in WordPress by walker class, if its then how? like-
    as Ul
    as li