Home>Support>Different Sticky Menu depending on a city selection (page)?

Different Sticky Menu depending on a city selection (page)?

I want my page and services to be present in different cities in my country, everything was really good till I get to this point:

I was wondering simulating oppening my services for different cities, I´m really worried because on the menu settings it says “Your theme supports one menu. Select which menu you would like to use.” But the thing here is that depending on the city the user choose, the menu will has the same structure but the destination URL (page) when the user click on “Restaurantes” for example, must show different pages depending on the city the user selected previusly on the home page.

I have put many effords and time on doing this page so it will be really sad that I can not be able to offer the service in different cities

URL: http://qpuntto.com/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    There are many ways to accomplish this but to give good advice I will need a bit more information. How are you going to determine the location of the user?

    Magus

  2. 9 years, 4 months ago artvaz

    yeah Magus look right now I´m using a droplist on the home page (qpuntto.com) so the user can select the city where he wishes the service, is there any other way to it better or a better way that you could recommend me?.

    Once the user click on the item (contained on the drop list menu), is redirectioned to the city, the URL is quite easy and intuitive as follows:

    if the user select Puebla City
    URL:http://qpuntto.com/puebla

    if the user select Toluca City
    URL: http://qpuntto.com/toluca

    The problem is that the categories on the sticky menu always go to the same URL because they are pages (set previusly on the menu I chose on the menu settings right? ), so I would like having different pages depending on the city the user choose even if they clicked on the same category.

    http://qpuntto.com/puebla/restaurantes
    http://qpuntto.com/toluca/restaurantes

  3. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    You should be able to do this using this plugin

    http://themify.me/conditional-menus

    You will need to create one menu for each of your areas, and area specific pages but once done you can then assign those menu’s to each set of pages using this plugin.

    Let us know how you get on

    Magus

  4. 9 years, 4 months ago artvaz

    is there any way so once I set the condition for a page, I can set it for the subpages of that page, the problem now that I have is that once Im in the city (the sticky menu is different) but if I click on a ctaegory for example “Restaurantes”, as it is not on the condition, the sticky menu disapears. So I would like to set the same menu no mather which category the user click, once I enter to the city (page) the same sticky menu applies for the rest of the subpages.

  5. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    You are going to need to create individual pages for each city. One for restaurantes, bares, cafes, and so on. Each of these pages will have the same menu assigned under the set condition.

    When you open the conditions for the menu go to pages and select all the pages that menu will appear on. When you add a new city, create the city pages first and then create a new menu pointing to those city pages. Open locations and add a new conditional menu targeting the new menu and select the new city pages to display it on.

    Hope this points you in the right direction

    Magus

  6. 9 years, 3 months ago artvaz

    Magus, look, I have this problem, If your have realized, the cities will have apparently the same menu structure (Restaurantes, Bares, Cafes, Antros…) but each of this pages, even they are called the same, they take the user to different pages:

    qpuntto.com/tolucaymetepec/restaurantes
    qpuntto.com/puebla/restaurantes

    The problem when I want to make the conditions is that when I create the menu for Puebla city it is as follows:

    RESTAURANTES
    BARES
    CAFES
    ANTROS & CLUBS
    MUSICA
    GALERIA

    Then I go to “Manage Locations”, and set the conditions for Puebla´s Menu in the part of “pages”, obiously I thick Puebla Page, and I gotta thick also all the sub pages of Puebla Page, the problem is that I have 2 pages called RESTAURANTES (one for Puebla city and other for Toluca city), 2 of BARES and so on, so when in “Conditions” I have to thick all the pages that I want the menu to apper on, it is quite hard to know which page is the one that I need to thick, and I´m afraid it will be worst when I include more cities, because if I have 10 cities I will have 10 pages of “RESTAURANTES” , 10 of “BARES” and so on called the same.

    So I was wondering if:

    there si a way of selecting Puebla Page and automatically all the sub-pages on the conditions stage??

    or other way to rename the pages but that not affect the name on the sticky menu, so I could be able of knowing what oage I´m thicking on

  7. 9 years, 3 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    For each sub page for the city you can assign the parent page as the main city page. This will then structure the menu selection hierarchically with each subpage as a potential sub menu.

    Magus

  8. 9 years, 3 months ago artvaz

    you mean once I create the menu, then I gotta go to:

    Manage Locations > +conditional menu > (I select the menu I just create)> +conditions>Pages>(thick pages where the manu is supposed to appear on)

    the problem is in this last stage because I gotta thick the pages I desire the menu should to appear on, but the problem is that it shows all the pages I have created with no order or secuence, so its kind of confusing choosing the page for example RESTURANTE because there are two pages as an option to thick but I dont really know which to choose

  9. 9 years, 3 months ago artvaz

    please refer to what I´m talking about on the image at the bottom in the following page:

    http://qpuntto.com/tolucaymetepec/galeria/

  10. 9 years, 3 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    It looks like this plugin will not work the way we want it to. If you are up for it please try this plugin instead

    https://wordpress.org/plugins/zen-menu-logic

    Go to Settings->Zen Menu Logic and set the menu area to primary.

    Create your menus the same way, one for each city, using parent pages for the sub pages (you will be able to continue using any menu you have already created). At the bottom of each page will be a new meta box where you can select which menu you want to appear with that page.

    This should be a lot easier to use.

    Let us know how you get on

    Magus

  11. 9 years, 3 months ago artvaz

    yeah it works as I wanted to Thanks Magus

  12. 9 years, 3 months ago artvaz

    Everything is ok the only problem is that the responsive menu (mobile) is not working as it was before lying with all this sticky menu stuff, is there any way so I can Still use the responsive menu when mobile screening

  13. 9 years, 3 months ago Magus
    Hi, I Work Here

    Hi Artvaz

    You currently have a responsive mobile menu plugin installed and have disabled the built in Vantage one. If you disabled this and enabled Responsive Menu and Mobile Menu at Appearance->Theme Settings->Navigation then the sticky would work correctly.

    Magus

  14. 9 years, 3 months ago artvaz

    I already disable the plugin you mentioned, and enable the responsive menu on theme settings but still chowing the whole sticky menu on mobile screen

  15. 9 years, 3 months ago artvaz

    Magus!, I think that plugin I was using kind of went worng because that responsive menu (Not vatage responsive menu) keeps there, and yours (vantage sticky menu) is not showing even it is enabled

  16. 9 years, 3 months ago artvaz

    Do you think Vantage responsive menu is not working due to now I have different menus deppending on the page???

  17. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Bumped over to: Thread: how can I insert php code, is there a PHP editor.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More