New home › Forums › Pro Add-on › Troubleshooting › Allow users to filter by category?
Tagged: categories, marker carousel
- This topic has 15 replies, 3 voices, and was last updated 1 year, 3 months ago by Matthew.
-
AuthorPosts
-
April 27, 2017 at 10:38 pm #26600vermalMember
Hello!
I checked this box, but nothing changes in the front-end of the map.
Is there a possibility to see in the list just the categories, and when clicking on one category to envelop the locations from that category?(like a tree?)
Or how is this feature working?Thanks in advance (for the best support team I have ever got in touch with)!
April 28, 2017 at 6:03 am #26610vermalMemberHello,
I got it, eventually (there were two places where I should’ve ticked the ‘allow users to filter by category’, but now I want to see the the options not as a drop down list (as it is in this moment), but as an opened list (like in your markers category demo, on your site).
How to do that?Thanks!
April 28, 2017 at 6:25 am #26611vermalMemberAnd also, can it be done this: the filter by category to be above the map and the store locator to be under the map (in my case the two features are not the same thing).
Waiting for your response.
Thanks.
April 28, 2017 at 10:02 am #26623vermalMemberAnd also another question:
– how to make the width of the marker’s carousel (in listing) like in your demo https://www.wpgmaps.com/demo/map-with-marker-listing-carousel/
For the moment it takes the maximum width of the text or image (depends which is the biggest).( http://lilletromania.ro/locatiile-lillet-romania/ )
Thanks!
April 28, 2017 at 10:15 am #26625PerryModeratorHi Vermal,
To display the categories as checkboxes please go to Maps -> Settings and under “Filter by category displayed as” select the checkboxes option.
With regards to the carousel, can you please go to Maps -> Settings -> Advanced and go to the Custom CSS field. Please add the following CSS:
.wpgmza_marker_carousel { width: 50% !important; margin: auto; }
You can tweak that width percentage to taste
Is there anything else I can help you with?
Kind regards
April 28, 2017 at 10:44 am #26626vermalMemberWonderful!
Worked like a charm.One more thing:
-how can I make the title of the markers (in the carousel) a different size or style? (I want to make it not bold, or to resize it to a smaller size – because in mobile the carousel is jumping one over the other).Thanks.
April 28, 2017 at 10:47 am #26627vermalMemberAn also, is there a way to move the categories (just them, not all the searching for the search locator) below the map?
April 28, 2017 at 10:57 am #26628PerryModeratorHi Vermal,
This custom JS will move the category checkboxes underneath the map:
$(".wpgmza_map").after($(".wpgmza_sl_category_div")[0])
However I wouldn’t recommend you do that as the search button is now above it which might be misleading to your users.
The following CSS will make the text normal weight and smaller:
.wpgmza_marker_carousel .item .wpgmza_marker_title { font-weight: normal !important; font-size: 0.8em !important; }
You can tweak the weight and size to taste
Is there anything else I can help you with?
Kind regards
April 28, 2017 at 11:18 am #26631vermalMemberYou are right, I won’t change the category.
Worked with the text, thanks.And one more thing!
I want to ask for a quotation for a customization (may I ask it through you?):
when i click on a cluster on the map to list just a certain category?Thanks again for all the help.
April 28, 2017 at 11:27 am #26632vermalMemberoh!
I remembered!
What is that thing in the right of the user’s input location (it looks like a target and when i click on it then the input auto-fills with some point – from florida).
How can I edit that? (or just make it disappear).Thanks again for all your efforts.
April 28, 2017 at 4:22 pm #26638PerryModeratorHi Vermal,
You can hide that button using the following CSS:
button#sl_use_my_location_1
{
display: none;
}If for some reason that doesn’t work, change the middle line to
display: none !important;
And thank you, no bother, it’s what I do and I very much enjoy the job!
Thank you
– PerryJuly 10, 2017 at 6:12 am #28492ppdMemberHi, apologies for jumping on old thread.. but I’m hoping to move category checkboxes under map. Could you help confirm where the custom javascript noted above should be added?
I tried adding this to theme using document.ready, but am not seeing any change?$(“.wpgmza_map”).after($(“.wpgmza_sl_category_div”)[0])
Thanks!
July 10, 2017 at 10:25 am #28507PerryModeratorHi Roy,
Thank you for getting in touch,
You should be able to add that code in using a custom JS plugin (there are plenty of good free ones) like so:
jQuery(document).ready(function() {
jQuery(“.wpgmza_map”).after(jQuery(“.wpgmza_sl_category_div”)[0])
});If that doesn’t work for you, could you please open your developer tools (F12 on most browsers), reload the page and tell me if you get any Javascript errors?
Kind regards
– PerryJuly 24, 2020 at 11:08 am #60225sasmuellerParticipantThis reply has been marked as private.June 8, 2022 at 1:04 am #73282mugwumpusParticipantI’d like to set up the carousel and allow people to select one of four symbols to either look for or add to the map I’m setting up. I, so far, can’t see how I can provide this option to my visitors.
I”m interested in this custom CSS code
“With regards to the carousel, can you please go to Maps -> Settings -> Advanced and go to the Custom CSS field. Please add the following CSS:”
I don’t see where I’m supposed to put this. Do I need to have an “advanced custom fields” plugin first?
-
AuthorPosts
- You must be logged in to reply to this topic.