Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Darren Healy
seal-mask
.a{fill-rule:evenodd;}techdegree
Darren Healy
Front End Web Development Techdegree Student 23,565 Points

In the Project; "From Bootstrap to Wordpress" my "example pages" link in the nav is...

...actually going to an example pages page. I don't want this page to work, rather when clicked on in the nav it simply shows the dropdown of child pages.

How do I do this?

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Create your own custom menu in the admin area then you can control what shows up in the menu.

Darren Healy
seal-mask
.a{fill-rule:evenodd;}techdegree
Darren Healy
Front End Web Development Techdegree Student 23,565 Points

I tried this Zac, was I clear enough in my question? I'll persevere as I think I can work with it anyway, thanks for the fast response!

Jason Taylor
Jason Taylor
3,059 Points

It sounds like you are wanting the top level link to not actually click through to the page but instead display the sub navigation items. If this is the case, my recommendation would be to not have an actual link for that specific top level nav.

Jason Taylor
Jason Taylor
3,059 Points

HI Darren, I'll piggy back off of what Zac was recommending. In your Dashboard, go to Appearance > Menus and Create a new Link. You don't have to give it a URL, you can always just use # to reference itself. Make that new Link the top level link and then add your sub navigation links below it. Make sure you add them as child links and not sibling links, if that makes sense.

Darren Healy
seal-mask
.a{fill-rule:evenodd;}techdegree
Darren Healy
Front End Web Development Techdegree Student 23,565 Points

I got it! I had tried to create a link previously leaving the URL blank which wouldn't work. I put the # in and all's well. Thanks Jason and Zac!