Hey Tom, I want to add a custom class for the navigation list items, I don’t know, maybe I need to use this funciton?
<?php
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
function special_nav_class($classes, $item){
if(is_single() && $item->title == "Blog"){ //Notice you can change the conditional from is_single() and $item->title
$classes[] = "special-class";
}
return $classes;
}
?>
From: https://codex.wordpress.org/Function_Reference/wp_nav_menu
What do you think?