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

Noah Laurent
Noah Laurent
3,080 Points

How to accomplish this site planning layout?

Here's what I want to accomplish, any thoughts on how can I pull this off without hiring a pro?

http://imgur.com/gCPtukO

4 Answers

Andres Altuve
Andres Altuve
16,274 Points

Hi Laurent,

If you are using a premium theme you could create a main menu that sits on top of your site that could have the following links for example : Home - City#1 - City#2 - Promote your business - Contact.

As for the secondary menu you could use the custom menu Widget that comes with Wordpress and then display the widget depending of the city you choose. To achieve this, you have to use a plugin that allow you to show a widget depending on the page you are.

Andres Altuve
Andres Altuve
16,274 Points

Hi Laurent, As long the categories are not parents you should have no problems at all.

You could create two categories and make them work as parents, for example, and then create childs with the same name.

City#1

  • Where to go
  • Where to eat
  • etc...

City#2

  • Where to go
  • Where to eat
  • etc...

The only thing is going to change is the slug, for example in city one your Where to go category will have the following slug "Where-to-go", but in your city#2 the slug is going to be set to " Where-to-go-city#2"

Iยดve tried this and worked with no problem, I even added a category widget and displayed both parents categories with their respective child using the same name.

I hope this makes sence for you.

Noah Laurent
Noah Laurent
3,080 Points

Hello Andres, It does make sense indeed, but the slug gets a lot uglier don't you think? I can always prefix the category with the city name like "city-where-to-eat". But setting up the navigation I cannot have the same menu in the 2 cities, I would need a custom menu for each, or not? Can I have custom menus to pages? Any thoughts on that?

Thanks

Noah Laurent
Noah Laurent
3,080 Points

Makes sense. Thanks Andres