StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Force "current_page_item" on separate page (http://www.studiopress.com/support/showthread.php?t=119515)

kzipp 10-02-2012 04:26 PM

Force "current_page_item" on separate page
 
I am looking to get a page thats not on my primary navigation force the nav to mark as "Active". For example if I am on page_id 173, and that page exists in my nav it updates the class to "menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-173 current_page_item menu-item-226".

If I am on page 174, how would I get page 173 to be "current". I would be able to set which pages force which to be active, so it does not need to be auto.

NicktheGeek 10-02-2012 06:06 PM

you could use child pages and the current-page-ancestor class to style your menu item.


All times are GMT -5. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.