Toggle (multiple) categories' visibility, plus Infinite Scroll
-
Hi guys.
This has been discussed before, but I was only able to find rather old threads that were long closed and didn’t answer my questions to an extent that I could work with. So:
What I would like to do is, let the user season my website to his taste, by being able to switch categories on and off as he reads along. I would have a fixed nav bar with my seven (or so) categories for him to toggle. Now, I could go and create custom loops for the 49 possible category combinations, but that seems a bit dull. My favourite option would be to simply add a display:none css rule to categories that are switched off. To make things a little harder, I need this to work with (Jetpack’s) Infinite Scroll enabled, so I can’t just iterate through the visible articles, but need to find a way to apply the rule globally. On the positive side, I can easily hard-code the nav bar, if that makes anything easier.
Any thoughts on how best to start a thing like that?
Thanks a ton!
Jules
- The topic ‘Toggle (multiple) categories' visibility, plus Infinite Scroll’ is closed to new replies.