Hide a marker category on load

New home Forums Pro Add-on General queries Hide a marker category on load

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #70576
    alessandr4
    Participant

    Hi, is it possible to hide a category on page load and then make it visible via filters?

    #70578
    Matthew
    Moderator

    Hi there,

    Thank you for getting in touch with us, we do appreciate your time.

    This may be possible using some custom JS code which can be entered in the settings area (Maps -> Settings -> Advanced Settings).

    With that said, please could I kindly ask if you may provide me with the link to your map page so that I may take a closer look at your map and filters?

    May I also ask if you may confirm which filters will show the respective category?

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #70580
    alessandr4
    Participant

    Here is the map, i basically need that one of the category(if possible withe the subcategory) is hide by default and shown when selected.

    Mappa dei presidi

    Thanks
    Alessandro

    #70582
    Matthew
    Moderator

    Hi Alessandro,

    Thank you for getting back to me and for your time on this, I really appreciate it!

    Thank you for the link and explanation, however, I am unfortunately still not too sure what needs to be selected in order for the categories to display.

    Thus please may you confirm what element needs to be selected in order to display the categories and their subcategories?

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #70584
    alessandr4
    Participant

    Hi there, for example i want to hide the “spazi” category on page load and than when i click the filter check i want it to be shown.

    Kindest Regards
    Alessandro

    #70585
    Matthew
    Moderator

    Hi Alessandro,

    Thank you for your response regarding this.

    My sincerest apologies for this, Are you wanting the markers to be hidden on page load, and then the markers should only display once a category filter is selected?

    If not, I assume you would want the category filter to be hidden on page load, and the category filter will only display when selected. If I understand correctly, the category will be hidden, thus please may you confirm how to select the category if it is hidden?

    You may provide me with images if possible as that may be easier to understand?

    My apologies for the back and forth on this, I just want to make sure that I understand you correctly.

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #70586
    alessandr4
    Participant

    Hi there,
    Sorry if I was unclear, but i want the markers to be hidden on page load, and then the markers should only display once a category filter is selected as you said.
    Despite everything in the end you understood my request.
    Thanks for your time.
    Alessandro

    #70588
    alessandr4
    Participant

    (But not all the markers, just the ones of the catergory “spazi”)

    #70589
    Matthew
    Moderator

    Hi Alessandro,

    Thank you so much for the confirmation as it is of much help! It is not a problem at all, I am glad that I now understand what you are wanting to achieve.

    Unfortunately, only hiding the “Spazi” markers is currenty not possible, however, you may hide all the markers until a category is selected.

    Should you be fine with hiding all the markers until a category is selected, please see the steps below:
    1. Navigate to Maps -> Maps -> Edit.
    2. Click on the “Store Locator” tab.
    3. Find and enable the “Hide all markers until a search is done” setting.
    4. Click the “Save Map” button.

    Once this has been done, the markers will be hidden on page load and will only display once a filter is selected.

    Please do let me know if this helps?

    Kindest Regards,
    Matthew

    #70590
    alessandr4
    Participant

    It’s not what I needed unfortunately, but thank you for your assistance anyway.
    Alessandro

    #70592
    Matthew
    Moderator

    Hi Alessandro,

    We do apologize for this, we may look into hiding markers that are within a specific category in the future.

    Kindest Regards,
    Matthew

    #75858
    Marina-K
    Participant

    Hi!

    I’m looking for the same thing, because I have a lot of marker on my map so I don’t want to show them all on page load. I thought maybe since 2021 there’s a solution for this?

    Thanks in advance for your help!
    Best regards
    Marina

    • This reply was modified 1 year, 5 months ago by Marina-K.
    #75891
    Matthew
    Moderator

    Hi Marina,

    Thank you for getting in touch with us, we do appreciate it!

    Thank you for your input and feedback regarding this, unfortunately hiding specific markers on page load is currently not supported.

    You may hide specific markers on your map completely by setting the marker’s “Display on frontend” setting to “No”. However, please note that the marker will not be shown at all on your map as it will not be loaded on the map at all.

    I hope this answers your questions?

    Kindest Regards,
    Matthew

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.