Jump to content

[FREE TUTORIAL] Adding 'active' state for current page in the top menu (all pages)


Recommended Posts

Hey everybody!

Seeing many people having issues with this, i wrote a short tutorial about targeting the current page's element in the top menu and style it. This works on every page (categories, subcategories, products, cms pages) and not only categories Goes far beyon adding style to the sfHoverForce class ;)

 

Here: http://nemops.com/pr...-current-state/

 

Cheers!

Edited by Nemo1 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Hi Nemo!

I’ve implemented your solution, but it highlights the whole sub-menu. I’d like to have only the selected sub-category + the parent category to be highlighted. Would you have an idea on how I can do this? Thanks you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...