$args 'menu' => 'main-menu'
-
Hi,
has anyone have an idea how to add current page for the menu?
I have this code for my pages:
<?php $args = array( 'menu' => 'main-menu', ); wp_nav_menu ( '$args'); ?>
I would like to highlight the current page with some css, but dont know how to add the dynamic class.
Any ideas?
Many thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$args 'menu' => 'main-menu'’ is closed to new replies.