The template I'm working on for a client has the following pages:
- Home : a custom static page that displays the content of a certain WP page, and the latest sticky posts. This is the front-page.php file.
- About us: a WP page
- Services : a WP page
- Events : a list of WP posts, in the Events category
- Blog : a list of WP in the Blog category
I'd like to highlight the current section in the main menu in CSS, but the only idea I have is to make a big list of PHP conditionals depending on the current case. For example if we are seeing the Events category, then we must be in the Events section, and so on.
Is there a more straightforward way of accomplishing this?