I'm a wordpress noob tweaking a theme, so I'm trying to understand how it works. I've read about 10 related posts in SE but don't get it yet. My problem is as follows:
header.php seems to generate the menu with,
<?php wp_nav_menu(array('theme_location' => 'nav-menu','container' => 'div', 'container_class' => 'menu' )); ?>
In the wp-admin, I've created a menu with
"Blog | About | Contact"
which point to the root and two pages: "/" | "about" | "contact" (very standard). Now, I'd like to style the menu depending on the "active" page. For "about" and "contact" this seems very easy. The classes generated for each menu item include current-menu-item. However, when on the home page my "blog" menu "li" only gets the classes
menu-item menu-item-type-custom menu-item-object-custom menu-item-47
and so cannot be styled accordingly. I've read some stuff about filtering, using functions, etc ... but don't quite understand it. If I define a function in functions.php, where would I use it afterwards.
Any insight and help is greatly appreciated,