Supreme theme – popular category changes

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

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

Open Support Ticket
  • Author
    Posts
  • #454517

    Ian
    Expired Member
    Post count: 144

    Hi there.

    Just wondering if you could help.

    I have a question regarding the Supreme theme and specifically the popular categories section on the home page – showing the 5 top categories.

    Im wanting to reduce the 5 down to say 3 or 4 (if possible) and also wanting to just have the icons but no text under each icon? (as the text does no show fully/ is cut off short when viewing on a phone and looks bad)

    Just wondering how to go about this please?

    Also just wondering if there has been any prior instruction or help anywhere on how to replicate the home page top section i.e – with the search bar and specifically the popular categories section as its shown on gd-home?

    Thanks in advance.

    Ian

    #454554

    Alex Rollin
    Moderator
    Post count: 27815

    Edit the following file /wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
    Look for

    
    
    
    echo do_shortcode('[gd_popular_post_category category_limit=5]');
    

    change to

    
    
    
    echo do_shortcode('[gd_popular_post_category category_limit=3]');
    
    #454676

    Ian
    Expired Member
    Post count: 144

    Hi Alex.

    Thanks for the prompt reply as always, much appreciated 🙂

    Yes i had actually found that fix when searching through the forum and while it did work, it did not center the remaining three (or four ) icons. (They were left aligned) so i thought there may be a different way. If not, any chance you can let me know how to center this?

    Also FYI – there are two sections in compatibility.php showing the echo statement…

    1) in line 1078 – echo do_shortcode(‘[gd_popular_post_category category_limit=5]’);

    – this one is identical to the ‘echo do_shortcode…’ that you stated in your reply , but this does noting if you change it to ‘limit=3’.

    the second is on line 1005 – echo do_shortcode(‘[gd_popular_post_category category_limit=5 category_restrict=1]’);

    This one is a bit different to the one you stated as it has ‘category_restrict=1]’ in the end.

    If you alter this one to show a limit of 3 then this works, however the icons are all left aligned (not centered?

    Could i trouble you to just have a look at this and possible give direction on how to centre the icons ? Thanks in advance on that one.

    Also was just wondering if you could let me know how to remove the category text under each category icon

    Thanks Alex

    Ian

    #454727

    Alex Rollin
    Moderator
    Post count: 27815

    These are built in features of the theme; we do not recommend customizing them because they will be overwritten in updates. We do not perform customizations in the forum.

    If you need a web designer you can contact an expert here: https://geodirectoryexperts.com/experts/

    #454738

    Kor
    Moderator
    Post count: 16516

    Hi Ian,

    Thanks for your reply. As mentioned by Alex, customization falls outside of our support scope. Anyway, you might want to check out this post https://wpgeodirectory.com/support/topic/supreme-directory-imagen-destacadas-aleatorias/page/4/#post-443869 and see if it helps center the categories.

    Thanks!

    #454751

    Ian
    Expired Member
    Post count: 144

    Thanks Alex,

    and thanks Kor, the custom CSS you recommended worked a treat. Perfect.

    Thanks a lot to you both.

    Ian

    #454754

    Ian
    Expired Member
    Post count: 144

    Oh one further question Kor if i may?.. just wondering if you could let me know how to remove the category text under each category icon (in then home page) using css?

    Thanks in advance.

    Ian

    #454819

    Kor
    Moderator
    Post count: 16516

    Hi Ian,

    Thanks for your reply. You can use the code below to achieve this.

    
    
    .sd-homepage .geodir-cat-list .cat-link {
        display:none!important;
    }
    #455095

    Ian
    Expired Member
    Post count: 144

    Thanks Kor…perfect as always 🙂

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