• Resolved MB Creation

    (@mbcreation)


    Hi Everyone,

    Basic question. I’m trying to add attributes to nav menu link so basically add a function nav_menu_link_attributes.

    But. Doesn’t seem to work.

    Unless i add a walker parameter to wp_nav_menu in my theme.
    Is it how it should work ? I mean why a basic call to wp_nav_menu does not trigger that filter (i thought class Walker_Nav_Menu was the default Walker)

    Or maybe i just missed something when i started my theme. That’s the only thing i have in functions.php for now.

    Thanks for your time and reply. Have a good day.

    Benoit

The topic ‘nav_menu_link_attributes usage’ is closed to new replies.