Change Popular Categories to Featured Categories or add a line in Supreme Dir

This topic contains 3 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #412914

    gruppopegaso
    Lifetime Member
    Post count: 85

    Hi. I’ve done some changes to Supreme Directory and i’m going very deep in using the theme.
    Changes are few but oriented to make this child theme useful for a live directory. Based on 5 years of use of a live one with success (with a very old theme).

    So i’ve noticed three thing:
    1) if we can add a second line of popular category on mobile (smartphone and tablet) and on desktop version the final result is very good and the “splash page” “home page” is really more complete
    Why two lines? Because using 5 in a row the result is not optimal on mobile. But only three are really a very small portion of a complete live site.

    2) It’s possible to transform the automatically filled “popular categories” with a featured category option.
    To understand: popular categories are not the more commercial one. And in a city guide is better to have the chance to put the categories that drives more economically useful traffic. If other categories are popular people simply search them without any spin by site administrator. So i must point attention on less visible but more “monetizable” one.
    It’s possible to transform popular categories, or add a line with featured. (better the first option).

    3) Why in popular categories isn’t possible to put events categories… so point (2) is useful to resolve this…

    Can we do all modifies only with css and little modifies on php?
    What files we must check to understand how to do it in the more efficient way.

    Thank you
    GP

    #412920

    Guust
    Moderator
    Post count: 29970

    1. That can be achieved with CSS and editing this file:
    https://wpgeodirectory.com/docs/faqs/how-do-i-remove-the-popular-categories-section-from-the-home-page/
    You would change category_limit=5 to category_limit=6.
    And add this CSS:

    
    
    .sd.home .featured-area .geodir-pcat-show {
        width: 31%;
    }

    You will have to adjust a little, see https://wpgeodirectory.com/docs/customizing-your-style/

    2. You would need to custom code that, “popular” means categories with most listings.

    3. If you change the CPT selector from Places to Events, you will get the Event categories.

    Thanks

    #412958

    gruppopegaso
    Lifetime Member
    Post count: 85

    Thank you Guust, very quick.
    I’ll give an eye on that code. I’ve changed it with limits from 5 to 3 (to fit mobile well).

    So there is no way to show mixed content (events/places)…

    Thank you

    #413021

    Alex Rollin
    Moderator
    Post count: 27815

    Hello GP,

    that is correct, the post types or their respective categories are never mixed.

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

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

Open Support Ticket