GeoDirectory SupportStyling places or categories places – GeoDirectory Support https://wpgeodirectory.com/support/topic/styling-places-or-categories-places/feed Thu, 05 Feb 2026 14:44:37 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/styling-places-or-categories-places/#post-23906 <![CDATA[Styling places or categories places]]> https://wpgeodirectory.com/support/topic/styling-places-or-categories-places/#post-23906 Tue, 09 Dec 2014 10:24:01 +0000 xalone Hi i am ready to purchase geo directory. just one question : is it possible to use a different style for different categories. example :
A style for restaurant: border yellow
Another style for hotel: border blue
or a style for a place and another for events ..?

If then could you give me an idea haw i can do that …
thanks for answer!! thanks for work!!

]]>
https://wpgeodirectory.com/support/topic/styling-places-or-categories-places/#post-23948 <![CDATA[Reply To: Styling places or categories places]]> https://wpgeodirectory.com/support/topic/styling-places-or-categories-places/#post-23948 Tue, 09 Dec 2014 18:12:18 +0000 Paolo hi Xalone,

This can only be done per custom post type, not per category, so the answer is yes, for places and events, but not for each category of the 2 cpt.

Each custom post type related page has a unique body class.

Example for places:

details page : .single-gd_place
listings page : .post-type-archive-gd_place

Likewise each element of a listing grid will have a custom post type related class.

Example:
.gd-post-gd_place

To add a black border only to listings in CPT gd_place you’d need to add this to your custom css:


.geodir_category_list_view li.geodir-gridview.gd-post-gd_place {
    border: 1px solid #000;
}

Thanks

]]>