Support » Fixing WordPress » How to create different menus for different topics on your website?

  • Hey guys!

    I’ve installed the oxygen theme for my website (a diy online magazine). My problem is that I have 6 main topics, with several subcategories. For each main topic I will like to have a different menu. For example, when you click the home decor section displayed in the top bar menu, you’ll see a side bar with living rooms, bedrooms, bathrooms, a.s.o. For DIY projects, the side menu displays diy for kids, fashion diy, handmade e.s.o.

    PS: oxygen theme allowed to create 3 different menus (top, side and bottom). I know how to do all this. The thing is that all bar menus are the same for all 6 main topics and I want a common top bar, but different side bar. The bottom one is not important.

    Thanks for your support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m not familiar with the Oxygen theme, but if it supports custom menus (Appearance -> Menus) you could create the menus, then use the approach described in this post, but instead of pages, use the categories you’ve created to determine which menu is displayed using the in_category() function and the category id.

    Thanks linux4me2. I saw that post, but was bit difficult to understand with the cods and everything.
    I already use categories in menus (oxygen supports 3 different menus). The thing is that I have 6 main topics on the website, and each topic has to have its own personalized menu.
    The upper bar (main menu) is formed from these 6 topics – diy projects, home decor, cocking, a.s.o. But when I got to home decor, for exemple, the website has to display a customized menu with living rooms, kitchens, bedrooms (related to topic). Don’t need to see cocking tips on diy projects, cause will be confusing for the reader.
    I think that the link you send is referring to that, but don’t get it very well yet :). Not very good with css…

    Anyway, thanks again for your quick reply. Good luck with everything!

    All the best!

    It’s really PHP, not CSS, but I understand what you’re saying.

    In the post it mentions the Custom Sidebars Plugin, which “allows [you] to create your own widgetized areas and custom sidebars, and select what sidebars to use for each post or page.”

    I’m not sure where you are getting your topics, if those are pages and not categories, it would work for you. If the topics are categories, and not pages, then you should take a look at this post, which describes a couple of plugins to accomplish what you describe. You’d just need to create custom menus and then widgets based on the custom menus. Using the plugins will get you around having to do any PHP-coding yourself.

    So your workflow would be:

    1. Create custom menus (Appearance -> Menus), either in addition to the three you have, for a total of six, or create all six.
    2. Create widgets for the custom menus (Appearance -> Widgets) using the plugin you select from above depending on whether your topics are page- or category-based.

    I’m posting in categories and subcategories, which then I use to create the menu. From what I know, when you have that much content as I have, pages are not an option, cause they don’t allow to post more than one article. So if I write 1000 articles it means I have to have 1000 pages. That I not desirable :). That’s way categories are a better option. Once a category it has its own box in the menu will display all articles under this category.
    I also think a widget will be the key to my problem. I am gonna try the plugin recommended by you. Let’s see what happens! 🙂

    Happy St. Nicholas Day, if you’re celebrating it!

    Yes, categories make much more sense in that case.

    Let us know if the plugin solves the problem.

    Thanks. Happy Holidays to you, too.

    I will! Still looking out for solutions.

    All the best!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to create different menus for different topics on your website?’ is closed to new replies.