cjdp Posted March 21 Share Posted March 21 (edited) Hello I am currently sorting my blog posts by category. I do this by allowing the user to click a button that links to a URL that contains the category. Something like: https://website-domain/blog-page-url?category=Name-of-Category This then reloads the blog page only showing posts in the specified category. I'm wondering if there's a way to have these buttons maintain their hover effects after the user clicks them so that if the user clicks button1, the page reloads, now they are viewing only category1 posts, and button1 will indicate it is clicked by maintaining its hover effects. I would assume this is done by using the unique url for the category but I can't seem to get it working. Also unfortunately I can't share my site url but let me know if any other information that would be helpful in answering this question. Thank you! Edited March 21 by cjdp Link to comment
tuanphan Posted March 25 Share Posted March 25 Hi, We can use some code to achieve this. You can share link to 2 or 3 pages where you have problem, we can check & test code easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
cjdp Posted March 25 Author Share Posted March 25 @tuanphan Thank you for reaching out! I have sent you a message with my sites details. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment