Jump to content
Sign in to follow this  
strongfruit

Double Parent _sub_nav.php

Recommended Posts

strongfruit

So close yet so far. Your _sub_nav.php script is pretty neat for showing child pages of parent pages. but what of children of children pages? Here is another way of explaining myself- The structure works fine: home program - about program - join program benefits - rewards - income contact apply now This one doesn't: Franchie - home - program - - about program - - join program - benefits - - rewards - - income - contact - apply now anyway way to control the options for _sub_nav.php? I set the depth for 2 in the .php but no luck..

Share this post


Link to post
Share on other sites
strongfruit

Your site is structured like this by default: The main nav is for root pages. The sub nave is for 1st child pages. I am trying to hack your site and add a "sections tab" on the top right. It will be a drop down that lets you jump from root pages which will act like categories. The main nave will be for 1st children. And the sub for grand children. So for instance. The 2 main pages will be Students Clients Each with their own navigation bar Student - Home - About - Contact - Sign up Clients - Home - About - Prices - Hire Us - Contact And they have sub sub nave like so Student - Home - About - - History - - Rewards - Contact - Sign up Clients - Home - About - - Testimonials - - Facebook - Prices - Hire Us - - List of Services - - Examples of our work - Contact Attached is an idea of what I'm after. nav.jpg

Share this post


Link to post
Share on other sites
strongfruit

Close. How about i reiterate what I need. Okay Cmunns. Right now the main nav shows the top level pages. The sub name shows the child of the currently selected top level page respectively. How to downgrade both. So the main nav shows the child and the sub nave shows the grandchild of the child. (The Main Nave will be replaced by custom code that I wrote myself. See above photo for reference or follow this link: nav.jpg)

Share this post


Link to post
Share on other sites
catrina

To clarify: so you want the child as the "parent" and the "grandchild" as the child? For example: "About" (which is actually the child page) would be the "parent" and the child of that would be "History" (which is actually the grandchild page)?


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
strongfruit

This should help: Here is a photo of how you currently have it set up: yoursetup.jpg Here is a photo of how I would like it: mysetup.jpg Essentially make the Main Nav move from showing Parent Pages to Child Pages. And the Sub Nav to move from showing Child Pages to Grand Child Pages. And I will add my own Custom Nav, to show Parent Pages. Get it?

Share this post


Link to post
Share on other sites
bryan-hadaway

I believe this is possible with PlatformPro and that the other themes will eventually be updated to that system. Marking for developer review for further insight. Thanks, Bryan

Share this post


Link to post
Share on other sites
strongfruit

Hey Bryan, that's fine that PlatformPro does it, but I am pretty sure I can not upgrade the White House Theme to Platform Pro. What I am asking for is not very hard. I just want the Main Navigation to show Child Pages and the Sub Navigation to show Grand Child Pages. It shouldn't be too hard, I don't think. Can anyone give me any direction for this?

Share this post


Link to post
Share on other sites
Andrew

Hey Efraim, hmm... well you can use the WP menus to control the top level navigation... as for the sub navigation, I can show you how to hack the file... While its hard to test on my end, the first thing you should look at is the `$reverse_ancestors[0]` variable in the _sub_nav file. Try changing it to `1` instead of `0`

Share this post


Link to post
Share on other sites
strongfruit

It didn't help. I am going to manual write out all the and

  • for each page. Hard code it.

Share this post


Link to post
Share on other sites
strongfruit

If anyone can help me it would be swell.

Share this post


Link to post
Share on other sites
Andrew

We're going to improve the subnav functionality of menus once WP 3.1 is out... they are addressing the shortcomings (hopefully)_

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  

×