StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 10-02-2012, 04:26 PM
kzipp kzipp is offline
Registered User
GenesisConnect
Pro Plus Member
 
Join Date: Oct 2010
Posts: 12
Default 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.
  #2  
Old 10-02-2012, 06:06 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

you could use child pages and the current-page-ancestor class to style your menu item.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
div "date" in a separate file Doktor Bro General Discussion 2 01-07-2009 12:57 PM


All times are GMT -5. The time now is 11:33 PM.

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