Supreme theme – popular category changes
This topic contains 8 replies, has 3 voices, and was last updated by Ian 6 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 16, 2018 at 4:00 am #454517
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
November 16, 2018 at 8:44 am #454554Edit the following file /wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
Look forecho do_shortcode('[gd_popular_post_category category_limit=5]');
change to
echo do_shortcode('[gd_popular_post_category category_limit=3]');
November 16, 2018 at 8:47 pm #454676Hi 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
November 17, 2018 at 1:12 am #454727These 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/
November 17, 2018 at 2:23 am #454738Hi 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!
November 17, 2018 at 4:37 am #454751Thanks Alex,
and thanks Kor, the custom CSS you recommended worked a treat. Perfect.
Thanks a lot to you both.
Ian
November 17, 2018 at 7:04 am #454754Oh 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
November 17, 2018 at 5:05 pm #454819Hi Ian,
Thanks for your reply. You can use the code below to achieve this.
.sd-homepage .geodir-cat-list .cat-link { display:none!important; }
November 20, 2018 at 2:09 am #455095Thanks Kor…perfect as always 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket