Display different maps on different pages

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #30146

    michaeljb
    Free User
    Post count: 84

    Hi

    I have a listings map displayed on my home page as default. I also have another map called places, I know you can toggle between them by clicking the relevant item in the bottom left of the map, but is there also a way I can add the other map as a menu item?

    #30149

    Guust
    Moderator
    Post count: 29970

    Do you mean that you want a link to a particular map in your menu? In that case, link to the relevant location or listings page?
    Not too sure what you mean with “add the other map as a menu item”.

    #30182

    michaeljb
    Free User
    Post count: 84

    I have 2 maps, one called places and one called listings. The default map on the home page is listings. You can toggle between the 2 maps by clicking on either places or listings at the bottom left of the map. But I do not think this is very obvious and I think people will miss the other map so I am asking if there is a way to add places to my top nav bar which will also switch the map.

    #30205

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the link that would trigger the map change would look like this:

    
    
    
    <a onclick="jQuery('#geodir_map_v3_home_map_1_posttype').val('gd_place');build_map_ajax_search_param('geodir_map_v3_home_map_1', true)" href="javascript:void(0);">Places</a>

    You could add it with a function to your top navigation, but it would visible in all pages of your website, even where the map isn’t visible and would become redundant.

    If you want to add custom link with a function to your menu you can have a look at this topic.

    https://wpgeodirectory.com/support/topic/add-menu-item-after-geodirectory-menu-items/

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket