Styling places or categories places

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 9 years, 11 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #23906

    xalone
    Expired Member
    Post count: 27

    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!!

    #23948

    Paolo
    Site Admin
    Post count: 31206

    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

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount