I have several menus for different sections in my website

Home Forums Pro Support I have several menus for different sections in my website

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #68209
    Ohad StoneOhad Stone
    Participant

    I have several menus in my website.
    Different sections of the site (the promotional section, a section for members, a section for employees) have different menus. But Responsive Menu forces me to pick one menu for all the pages in my website. Can’t I have it display the proper menu for each sectionpage?

    #68218
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Ohad,

    There are quite a few answers to that in this forum already I believe and the bottom of this knowledgebase article explains how to do that:

    https://responsive.menu/knowledgebase/using-the-shortcode/

    Hope that helps

    Peter

    #68217
    Ohad StoneOhad Stone
    Participant

    I couldn’t find an answer in the forum.
    Plus, the following issues are is not clear:

    1. Once I turn on the Shortcode option, the Menu is turned off for the entire site. Now I have to add it manually in each page that I want the menu to appear at?
    2. In the link provided there’s a table. You state that with the shortcode turned on “you get a few extra options for changing particular information on the fly”. Where are those options?
    3. “A small table of these is shown below” – The syntax of the shortcode, using those options, is not clear. Please clarify.

    #68216
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Ohad,

    1. Yes, you need to put the shortcode on every page, normally you would just do it in one of the template files such as header.php.

    2. The options are shown in the table to use and there are examples of using them in the same page.

    3. There is a heading in that page titled Using Custom Options that shows exactly that?

    Please advise

    Peter

    #68215
    Ohad StoneOhad Stone
    Participant

    Thanks Peter.

    Well, all the examples in the page (under the table) show as php code, and I’m not a developer, therefore I disregarded them. But I understand now that the shortcode syntax is the same, whether it is embedded in php code or not.

    1. How can I tell what other options the shortcode offers? As you state – “a small table of these is shown below”, it implies that there are more options that are not displayed in the table.

    2. Another question: Let’s say that most of my website pages require menu #1, while only several require menu #2. Can I add the shortcode in the header.php file with menu #1 (that will count for all the pages in the website), and only for those pages that require menu #2 – add the shortcode calling for menu #2 in the body of those pages itself? Will menu #2 override menu #1 in those pages?

    #68214
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Ohad,

    I see what you mean but yeah the example could be using PHP or not, the shortcode is still used in the same way as you say.

    1. If you want a full list, you can look in the default_options.php file in the config folder of my plugin. Not all options will work with the shortcode however but it’s worth playing around with a few.

    2. No, that is not possible. You would end up with double output in your page and it wouldn’t work. How are you determining what pages it should show menu 1 and menu 2 on. As long as there is a specific rule then you can create a simple if statement in PHP based on this as on the knowledgebase article.

    Hope that helps

    Peter

    #68213
    Ohad StoneOhad Stone
    Participant

    Thanks.

    2. Well, I’m not sure I can differentiate between those pages needing menu #2 from the rest (having menu #1) based on a rule. Can I use page ID numbers in the php IF statement?

    Maybe something like the following algorithm:

    if page-id is:
    ‘1549’ ==> use ‘menu-#1’;
    ‘1554’ ==> use ‘menu-#1’;
    ‘1652’ ==> use ‘menu-#2’;

    etc…

    #68212
    Peter FeatherstonePeter Featherstone
    Participant

    Hi Ohad,

    Yes you can do that. That is the example provided on this page:

    https://responsive.menu/knowledgebase/hiding-the-menu-specific-pages/

    All the best

    Peter

    #68211
    Ohad StoneOhad Stone
    Participant

    Thanks.

    #68210
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Ohad,

    You are welcome 🙂

    Peter

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘I have several menus for different sections in my website’ is closed to new replies.