Jump to content
Sign in to follow this  
rtysmith

Grandchild Nav, Hide Grandchild outside of parent

Recommended Posts

rtysmith

Is there anyway to hiding the non-direct grand children of the parent? I want to see all the secondary nav, but only the next level when I'm under the parent. Way it works now: parent 1 -grand child 1 -grand child 2 parent 2 -grand child 1 -grand child 2 What I would like (assuming I'm on page parent 1 parent 1 -grand child 1 -grand child 2 parent 2 So the parent 2 sub-nav is hidden

Share this post


Link to post
Share on other sites
catrina

I'm not sure if there's a way to do that. By default, the parent 2 sub-nav wouldn't be popping up at the same time as the parent 1 sub-nav. It will only display when the parent 2 link is moused over.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
[Deleted User]

@tyler You mean like on this page? (You need to be registered to see the content, but the sibar menu works) This is actually the old "PageLines Pro - Grandchild Nav" widget revived + some extra CSS code. Add: `require_once( PL_INCLUDES . '/config.widgets.php' );` to `YourPlatformBase/functions.php` after line 10 `require_once( dirname(__FILE__) . '/setup.php' );` This revives the widget. Add: `/* GreatGrandchild nav collapse */` `#grandchildnav ul li ul li a {display:none;}` `#grandchildnav ul li.current_page_parent ul li a, #grandchildnav ul li.current_page_item ul li a {display:block; font-size:90%; padding-top:4px; padding-bottom:4px;}` `#grandchildnav div.winner {padding:10px;}` to `YourPlatformBase/style.css`

  • The first line hides the GreatGreatGrandchild items
  • The seconde line shows GreatGreatGrandchild items of the current GreatGrandchild and current GreatGrandchilds Children with some altered size and padding.
  • The third line just changes the padding of the widget.

Regards, Jackey

Share this post


Link to post
Share on other sites
rtysmith

Jackey, Your a life saver! Thank you!!!!!

Share this post


Link to post
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

Sign in to follow this  

×