Popular Categories

This topic contains 7 replies, has 2 voices, and was last updated by  Guust 7 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #424469

    Leonardo Guastella
    Expired Member
    Post count: 164

    Hi there is there a way I can show only the top (parent category)

    For example, my parent categories are: construction, legal, children, health, etc
    under construction would be plumbing, electricians, etc

    under legal will be: solicitors, lawyers, accountants
    children: nursery, child minding etc
    health: dentist, chiropractor etc

    #424477

    Guust
    Moderator
    Post count: 29970

    You can do that with the CPT categories widget:
    https://wpgeodirectory.com/docs/widgets/#cpt-cats
    https://wpgeodirectory.com/docs/core-shortcodes/#ctp-cats

    Let us know if that works for you. Thanks

    #425095

    Leonardo Guastella
    Expired Member
    Post count: 164

    Hi i tried a couple of things and i realised if need something more
    For example once the person clicks on a parent category is it possible that the sub categories loads up.
    So they click on “construction” and then pumbing, electricians etc loads up?

    #425101

    Guust
    Moderator
    Post count: 29970

    The CPT categories widget should do that.
    Add the widget to the Listings pages, and set
    Max no of sub-categories: 0
    Show max sub-categories depth: 1

    #425143

    Leonardo Guastella
    Expired Member
    Post count: 164

    I did that is not loading the subcategories
    https://inbexhill.com

    #425144

    Leonardo Guastella
    Expired Member
    Post count: 164
    This reply has been marked as private.
    #425145

    Leonardo Guastella
    Expired Member
    Post count: 164

    Also I had this code to make the font small on both desktop and phone how could i get it on there?

    .featured-area .geodir-category-list-in {display:none;}

    @media only screen and (max-width: 480px) {
    .geodir_popular_post_category .geodir-cat-list ul.geodir-popular-cat-list li {
    font-size: 12px!important;
    }
    }

    #425163

    Guust
    Moderator
    Post count: 29970

    You did not add the CPT categories widget to the Listings pages, I have done that now. I suggest deleting the Popular Categories widget.

    I also corrected your WP permalinks: https://wpgeodirectory.com/docs/basic-installation/#postnames

    You can add CSS at GD > Design > Scripts tab > Custom style css code

    Thanks

Viewing 8 posts - 1 through 8 (of 8 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