How to hide individual categories on landing page

This topic contains 8 replies, has 3 voices, and was last updated by  Kevin Edwards 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #537690

    Kevin Edwards
    Full Member
    Post count: 10

    Hello,

    I am looking to hide individual categories on the landing page in the following sections: under the first search form and above the map widget. I have read through some of the documentation, but nothing has stood out. Could someone share how I can make these changes.

    Cheers,

    #537713

    Alex Rollin
    Moderator
    Post count: 27815

    You can hide them with CSS. The GD Categories element doesn’t have an option to choose exactly which ones to show.

    Better than hiding it you could create your own category navigation with a builder, have you tried that?

    #537810

    Kevin Edwards
    Full Member
    Post count: 10

    Hello,

    Thanks for the reply. I could use CSS, but I am not seeing a unique class or ID attached to the

    gd-cptcat-ul gd-cptcat-parent

    unordered list that I could target. Is there a way to add the category name or ID to the HTML output?

    I have not tried creating a category navigation. Is there a support document I could follow?

    Cheers,

    #537840

    Kor
    Moderator
    Post count: 16516

    Hi Kevin Edwards,

    Thanks for your reply. Could you share the URL of the page in question and also a screenshot of the area you’re referring to?

    #537863

    Kevin Edwards
    Full Member
    Post count: 10
    This reply has been marked as private.
    #537882

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #537889

    Kevin Edwards
    Full Member
    Post count: 10

    Hello,

    We are not wanting to completely hide the categories by removing listings, we just want to hide the category links on the landing page.

    For example: setting the Uncategorized category to display: none; or hidden using some PHP.

    Cheers,

    #537895

    Kor
    Moderator
    Post count: 16516

    Hi Kevin,

    Thanks for your reply. You can use the custom CSS code below to achieve what you needed there.

    header .featured-area .geodir-categories-container .gd-cptcat-rows ul:last-child {
        display:none;
    }
    
    .geodir-categories-container ul:nth-child(6),.geodir-categories-container ul:nth-child(7) {
      display:none;
    }
    #537901

    Kevin Edwards
    Full Member
    Post count: 10

    Hello,

    Thanks for sharing the code. We will implement it and see how it goes.

    Cheers,

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

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

Open Support Ticket