Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Feature Requests › Category Filter
- This topic has 12 replies, 2 voices, and was last updated 2 years, 8 months ago by
Manathan.
-
AuthorPosts
-
MichaelParticipant@mslifka
- 8 Topics
- 29 Posts
Up::0Hi There 🙂
First, Thanks for the great theme. Overall, very happy with it!
If I could make one small (maybe nit-picky) suggestion, it would be the ability to exclude categories from the category filter on the blog page.
For example, I am also working Buddypress on my site, and the category filter presents my Youzify media files as a category on the blog page. It also presents my parent category which is redundant given then presences of the “All” filter button that is already there.
Now, if there is already a way to do this, I haven’t been able to find it, and I’m all ears!! I also recognize I can create a blog template and use a plugin like Category Ajax Filter, but hey, I absent this issue, I really like how the blog is laid out with Gwangi 🙂
May 26, 2022 at 20:46 #40752@themodactyl- 0 Topics
- 6690 Posts
Hi Michael,
Could you provide us with screenshots of your website please? Please don’t hesitate to comment or highlight your screenshots to help us better understand your issue. You can also share the link of the page so we can take a look.
Thank you.
May 30, 2022 at 15:35 #40806MichaelParticipant@mslifka- 8 Topics
- 29 Posts
Sure thing.
Two screens attached. On shows the categories defined in admin -> Posts -> Categories. I have re-named both the un-catagorized and Youzify categories for display purposes. I also have not defined a parent category.
So, the blog page screen shows the blog page display with the filter. For example, I would like to exclude the un-categorized and Youzify (member media) categories from the displayed filter to keep things limited to author blog posts for specific categories.
In addition, a parent category (if one was present) would show up and create a redundancy with the “All” filter button.
May 30, 2022 at 17:23 #40824@themodactyl- 0 Topics
- 6690 Posts
Hi Michael,
To change this, you’ll have to use the following code snippet to your website. This snippet uses the data-filter value. You’ll have to adapt it to suits to your categories. Please find the attached screenshot.
/** * Remove categories from archive page */ .posts-filter.nav .nav-item a[data-filter*="category-food"], .posts-filter.nav .nav-item a[data-filter*="category-lifestyle"]{ display:none; }
To add this code snippet to your site, we recommend that you paste it to the Custom CSS panel of your WordPress Customizer. Just go to your dashboard and navigate to “Appearance > Customize > Additional CSS”.
Pasting your code snippet there should do the trick for you.Also, it’s important to remember that we share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.
If you want to go further with the customization of your website, we advise that you require customization work.
Regards,
May 31, 2022 at 11:38 #40841@themodactyl- 0 Topics
- 6690 Posts
Hi Michael,
This snippet hide the categories from the posts page, not the admin. You can’t delete these categories.
In case this snippet doesn’t work on your website, it’s best if we take a quick look at this. Could you create a new website user for us please? If possible with administrator capabilities so we can make a quick check of your settings.
You can post the user name and password in your next reply and mark it as private to keep this between us. Please send us the url of your posts page.Thank you.
June 1, 2022 at 10:09 #40861@themodactyl- 0 Topics
- 6690 Posts
Thank you Michael,
It seems the data-filter was not displayed. I adjusted the snippet to use the href instead and it’s working.
/** * Remove categories from archive page - */ .posts-filter.nav .nav-item a[href*="blog/uncategorized/"], .posts-filter.nav .nav-item a[href*="blog/youzify_media/"]{ display:none; }
Can you confirm me all is working fine on your side?
Best,
June 1, 2022 at 15:36 #40883@themodactyl- 0 Topics
- 6690 Posts
You’re welcome! 🙂
If you’re happy with our theme, feel free to review our theme on our Themeforest page:
https://themeforest.net/item/gwangi-dating-community-theme/21115855It’s very appreciated and it helps us making our products more known to new potential customers, which allow us more time to improve the quality over time and develop new features. It’s a win-win !
And by doing this, you will be making a great contribution to our community! #SharingIsCaring ❤️
Thank you!
June 2, 2022 at 08:22 #40889MichaelParticipant@mslifka- 8 Topics
- 29 Posts
Will do! I’m super happy with the theme and help in getting things polished-up and working the way I envisioned.
Also going to post that code snippet you provided below in case anyone else experiences the same problem –
**Exclude Categories From Blog Categories Menu:
/** * Remove categories from archive page - */ .posts-filter.nav .nav-item a[href*="blog/uncategorized/"], .posts-filter.nav .nav-item a[href*="blog/youzify_media/"]{ display:none; }
Cheers and thanks again for all the help 🙂
June 2, 2022 at 18:27 #40910 -
AuthorPosts
You must be logged in to reply to this topic.