Hide categories

This topic contains 5 replies, has 3 voices, and was last updated by  Marcel Warenburg 5 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #466377

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    is it possible to hide categories in the shortcode:

    [gd_cpt_categories]

    Hopefully it is

    Greetings,
    Marcel

    #466378

    Kor
    Moderator
    Post count: 16516

    Hi Marcel,

    Thanks for your post. Do you mean you want to hide a specific category from that shortcode?

    Thanks!

    #466397

    Marcel Warenburg
    Expired Member
    Post count: 24

    Yes that is correct

    #466405

    Marcel Warenburg
    Expired Member
    Post count: 24

    Along with that I saw that you can also add a imge to a categorie. Where does this image appear? I see that you can show the icon in the shortcode but is it also possible to show the image instead?

    #466434

    Alex Rollin
    Moderator
    Post count: 27815

    You can see some examples here:
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_categories

    When the default image is used, it is also shown in the same place as the icon or map icon.

    gd_categories doesn’t have any options to hide a specific category, and the individual categories don’t have an ID so, custom css would need to select a child and isn’t a great solution and the example below would really need more customization by you on your site.

    
    
    
    #ds-container > div.container > div > div.col-lg-8.col-md-9 > div > article > div > div:nth-child(10) > div > div.gd-cptcat-row.gd-cptcat-gd_place > ul:nth-child(5) {
        display: none;
    }
    

    We are planning improvements for this element for future versions and will consider adding IDs so hiding one is easier.

    Thanks for writing in with your question!

    #466574

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    Thank you for your answer!
    I will give that a try.

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

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

Open Support Ticket