GeoDirectory SupportDefault category icons on "GMap – Home page" – GeoDirectory Support https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/feed Wed, 18 Feb 2026 17:15:10 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2558 <![CDATA[Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2558 Mon, 19 May 2014 19:08:12 +0000 eqhes Hi,

I’ve got a main category and some subcategories in it. Say, for example (all enabled for the map):

– Main
— Sub one
— Sub two

The Google Map on home page shows all the pinpoints with the icon assigned to the “Main” category. If I uncheck “Main”, then I see all pinpoints with the “sub one” or “sub two” category icons. With GeoTheme I could get into this approach by default (all categories active, but “Main” unchecked). But with GeoDirectory I can’t do the same because if I disable “Main” on [Geodirectory –> Design –> Map] all subcategories are also disabled.

I’ve tried to set, p.e., “Sub two” as the default category of a place, but it doesn’t take effect for the icon on the map.

So I think there are two approaches to get what I want:

  • Let us uncheck a category, but keep the subcategories checked and enabled. <– I think this is the best option, it worked fine on GeoTheme.
  • Use the default category icon as the icon for pinpoints instead of the parent category icon. <– Not sure, but this could be hard to develop, isn’t it?

Any advice on how to get what I want?

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2560 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2560 Mon, 19 May 2014 19:16:30 +0000 eqhes You can see what I’m talking about in the two images attached to this post.

  • mapa-no.png (GeoDirectory) <– Subcategories are shown because I’m displaying them with CSS, they are forever-hiden by default.
  • mapa-si.png (GeoTheme) <– Subcategories visibility can be toggled using a small arrow in front of the main category name. The main category is unchecked bu default.
]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2586 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2586 Tue, 20 May 2014 02:07:29 +0000 Vikas Hi,
I will look into it and get back to u asap.

Thanks for notifying.

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2596 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2596 Tue, 20 May 2014 05:53:41 +0000 Vikas Sorry but i couldnt create this issue on my local version.
Please let me know ur site url.

Thanks

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2597 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2597 Tue, 20 May 2014 06:03:52 +0000 Vikas OK i understood what exactly u need.
I am not sure why would u like to disable the main category and make only sub categories available on map. Will u please provide me an example where it is really necessary to make main disable and make sub cat available ?
Regarding the default category, U can set only main category as default one, default cat icon is used to decide which icon to show in listing or search results map when a post is in more than 1 category.

Please advise ?

Thanks

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2619 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2619 Tue, 20 May 2014 12:01:59 +0000 eqhes Hi @Vikas,

Please, check the images attached in my last post here.

I need the result shown on the “mapa-si.png” (this is a screenshot of a GeoTheme installation). I need to show all items from subcategories each one with the subcategory icon. If I enable the main category, then all markers are shown with the main category icon and then we can’t distinguish visually which kind of place a marker is (example of this undesired behaviour: “mapa-si.png”).

I’ll send you access to my GeoTheme installation so you can compare how I achieved this on there.

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2620 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2620 Tue, 20 May 2014 12:07:08 +0000 eqhes https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2629 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2629 Tue, 20 May 2014 14:14:02 +0000 Vikas Hi,

I will check it and get back to u.

Thanks

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2732 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2732 Wed, 21 May 2014 16:25:06 +0000 eqhes While you add this features (or “re-add” them, because they were in GeoTheme), I’ve done the job loading this JavaScript on header:


<script language="javascript" type="text/javascript">
	
    jQuery(window).load(function(){
        jQuery(".geodir_map_v3_home_map_2_map_category .main_list > li:first-child > input").trigger( "click" );
    });

</script>

This works for me because the category that has got subcategories is the first one on the list and the class name of my map is “geodir_map_v3_home_map_2_map_category”. Other configurations may need some tweaks, but anyone can improve this code as needed ;).

]]>
https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2788 <![CDATA[Reply To: Default category icons on "GMap – Home page"]]> https://wpgeodirectory.com/support/topic/default-category-icons-on-gmap-home-page/#post-2788 Thu, 22 May 2014 07:08:11 +0000 Vikas Hi,

I will check this out.

Thanks

]]>