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.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-14-2009, 06:36 PM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: No Link on main parent page in 1st tier nav?

code by Craig
Quote:
That will require you to hard-code your navbar menu, which is okay if you are not going to add any new Parent pages.

Find this block of code in header.php:

<div id="navbarleft">
<ul id="nav">[*]Home
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order'); ?>[/list] </div>


Change it using this sample and addition of your pages:

<div id="navbarleft">
<ul id="nav">[*]Home[*]YOUR PAGE NAME HERE
<ul><?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order&child_of=X'); ?>[/list] [*]YOUR NEXT PAGE NAME HERE
<ul><?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order&child_of=X'); ?>[/list] [/list] </div>


You will need to create blank Pages for each Parent even though you are not going to use the page.
Replace the 'X' in each child_of= setting with the Page ID of the Parent.
Review this article to get the Page ID number for each Parent page.
or plugin route

http://wordpress.org/extend/plugins/page-links-to/
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
 

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
Removing Link from Parent Page joshguss General Discussion 2 02-15-2010 04:55 PM
Disabling a parent page link wardrob2 General Discussion 9 11-16-2009 04:46 PM
I dont want top (parent) nav to link to its own page mattwilljoe General Discussion 13 11-16-2009 02:35 AM
Disabling link on nested parent page lukasOB General Discussion 2 05-04-2009 04:09 PM


All times are GMT -5. The time now is 08:51 AM.

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