Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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