Filter category post
Hi, I want to filter post categories by button like in this example.
Is there an easy way to do this?
If not, how are the categories recalled in order to use html / css / js code?
Thank you
-
Hello Alex!
Which example?
Please also provide us URL to your project, for better understanding.
Kind regards,
Mihail
0 -
Sorry, I forgot the link :).
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_filter_elements
0 -
Hello Alex!
Thank you. No, the default posts element doesn't have such functionality.
But you can add posts element inside of Tabs element, and show in each tab only the needed category.
Kind regards,
Mihail
0 -
I had imagined it.
The tabs I am using them, but they are heavy and uncomfortable, and above all in mobile they are stacked and not in line.
If you tell me how to recall the categories (you will use the classes I presume) I can try to do it in html / css / js.0 -
Hello Alex,
My name is Natalia, thank you for your message.
You have a great idea regarding the post filter using buttons, but unfortunately, we don't have this option. However, I will add this request to our feature request list.
I will support the Tabs idea, as my colleague mentioned. I've tried to re-create something similar - https://jmp.sh/EBEKK3w; At this point, you can add custom css, on the tabs and on the post section https://jmp.sh/GYRfKvj;
Let me know if you need more assistance on this issue.
Thank you!
Natalia
0
Please sign in to leave a comment.
Comments
5 comments