Assign title-specific class to list items in menu based on WP pages

Yes – you can do this without having to write any code, too.

  • On the ‘Menus’ page, locate the ‘Screen Options’ at the top of the page and locate the ‘CSS Classes’ check box. Click it.

enter image description here

  • After that, expand a menu item and you’ll see a new option for ‘CSS Classes’

enter image description here

Leave a Comment