Is it possible to have a non-navigable parent page?

267 views
Skip to first unread message

Karen Kreps

unread,
Aug 5, 2010, 4:27:53 PM8/5/10
to wordpres...@googlegroups.com
Is it possible to have a horizontal page menu display as a parent
page, with drop down child pages when the parent page is not
hyperlinked?

If that isn't clear, try this:

I have page1, page2, page3. Page 2 had Page2Child1, Page2Child2,
Page2Child3. I have no content for page2 and only want it on the menu
to hold the child pages. How can I prevent Page2 from going to a blank
page?

I'm hoping for a solution via the admin pages, not hacking the theme.

TIA.

KK

Pat Ramsey

unread,
Aug 5, 2010, 4:32:15 PM8/5/10
to wordpres...@googlegroups.com
Karen,

The only way I know of doing this is with some javascript where you trap the click with a "return false" .

There was/is a plugin that lets you build your own page menu structure. I've not used it nor do I know if it does what you're looking for.

Cheers!

Pat

-- 
Pat Ramsey                                          
Web Design and Accessibility Specialist
@pat_ramsey

Code that works,… beautifully

--
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To post to this group, send email to wordpres...@googlegroups.com
To unsubscribe from this group, send email to wordpress-aust...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en

Our meeting information is available at http://www.meetup.com/austinwordpress/

Bill Erickson

unread,
Aug 5, 2010, 4:34:54 PM8/5/10
to wordpres...@googlegroups.com
While it's best to have content on all pages, you "can" do this with
the new WordPress Menus.

There's two approaches:
1. Having a pseudo page as the parent page, and its children are
actually top level pages.
2. Or, create a standard parent / child structure, create a pseudo
page for the menu, and then use a redirect plugin on the parent page
to go somewhere in case someone types that address in (the parent page
won't be accessible from the menu, but it will still exist so you
should plan for that).

- In Appearance > Menus, either create a menu or use an existing one.
- In the left column where it says "Custom Links" put "#" as the URL
(no http) and add the title you'd like for it.
- Click "Add to Menu" and position it.
- Drag the menu items that you would like to be children under it.
They can be top level pages or actual children pages.


---
Bill Erickson
Wordpress Consultant
http://www.billerickson.net

Paul Hastings

unread,
Aug 5, 2010, 4:35:27 PM8/5/10
to wordpres...@googlegroups.com
Karen,

You could also re-direct Page1 to Page1-Child1, Page2 to Page2-Child2, etc.

Heather Seitz

unread,
Aug 5, 2010, 4:37:33 PM8/5/10
to wordpres...@googlegroups.com
Depending on what you're trying to do - and how advanced you need it to be - you might be able to accomplish this with custom menus in WP 3.0. 

I will take a deeper look this afternoon, but we've done something along those lines with the sidebar. If you're trying to do it on the header navigation, it will take a little coding and/or a plugin. 



-- 
Yours In Success,
Heather Seitz
Get Your Emails Delivered at www.EmailDelivered.com
Discover the NEW Way to Learn About Real Estate Investing at www.RealEstateTrainingAcademy.com

On Thu, Aug 5, 2010 at 3:32 PM, Pat Ramsey <ramse...@gmail.com> wrote:



--
Yours In Success,
Heather Seitz
Get Your Emails Delivered at www.EmailDelivered.com
Discover the NEW Way to Learn About Real Estate Investing at www.RealEstateTrainingAcademy.com

Pat Ramsey

unread,
Aug 5, 2010, 4:38:03 PM8/5/10
to wordpres...@googlegroups.com
Bill's the man here. :-) I think his idea's rather elegant in its simplicity. 

Cheers!

Pat

-- 
Pat Ramsey                                          
Web Design and Accessibility Specialist
@pat_ramsey

Code that works,… beautifully

Stephanie Leary

unread,
Aug 5, 2010, 4:53:07 PM8/5/10
to wordpres...@googlegroups.com
On Aug 5, 2010, at 3:27 PM, Karen Kreps wrote:
If Bill's redirect solutions aren't quite what you're looking for, you can use this mini-plugin to check whether a page's content is empty and if so, print a linked list of its child pages.


Stephanie Leary, @sleary
Beginning WordPress 3, available now:







Karen Kreps

unread,
Aug 5, 2010, 5:18:46 PM8/5/10
to wordpres...@googlegroups.com
Thanks. I'll look into this approach. I had been thinking of putting a
redirect to the first child page on the parent page.

KK


On Aug 5, 2010, at 3:34 PM, Bill Erickson wrote:

>> To post to this group, send email to wordpress-
>> aus...@googlegroups.com

Stephanie Leary

unread,
Aug 5, 2010, 5:24:12 PM8/5/10
to wordpres...@googlegroups.com
On Aug 5, 2010, at 4:18 PM, Karen Kreps wrote:
> Thanks. I'll look into this approach. I had been thinking of putting a redirect to the first child page on the parent page.

Nathan Rice has a plugin to do this, but his site's a bit messed up and the download's a 404... email him, though, and I'm sure he can locate the file!
http://www.nathanrice.net/plugins/

Paul Hastings

unread,
Aug 5, 2010, 5:26:46 PM8/5/10
to wordpres...@googlegroups.com
But Bill's solution is definitely the best one offered here. Like Pat said, very elegant.

--

Karen Kreps

unread,
Aug 9, 2010, 11:09:53 PM8/9/10
to wordpres...@googlegroups.com
Thanks everyone for their suggestions. I wound up resolving things by
having an empty parent page with a redirect to the first child page.
Works nicely.

KK

On Aug 5, 2010, at 3:34 PM, Bill Erickson wrote:

>> To post to this group, send email to wordpress-
>> aus...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages