I’d like to make primary link in the header menu clickable.
i already edited the navwalker in order to do have the good href info, but can’t get the link to work and i don’t understand why.
see here : https://nasdy.website/mrtermite2/, by example “Les nuisibles” link or “Nos expertises”
Ok, gotcha !
It’s a bootstrap dropdown problem.
In order to work, it just need to have a class “disable” on it.
I fi put it throught the menu class in the customizer it’s the li element that hae the class,
so in order to add it to he a element, i edited the dazzling inc/navwalker.php here :
if ( $args->has_children && $depth === 0 ) {
$atts[‘href’] = ! empty( $item->url ) ? $item->url : ‘’;
$atts[‘data-toggle’] = ‘dropdown’;
$atts[‘class’] = ‘dropdown-toggle disabled’;/* add the class to the a element */
} else {
$atts[‘href’] = ! empty( $item->url ) ? $item->url : ‘’;
}