• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ajax & jQuery – that is where you should start

    Thread Starter julesibulesi

    (@julesibulesi)

    Thanks. That’s where I DID start, actually. ?? But I can’t figure out how to go about it. Because what I’d need to do is, alter the external stylesheet directly, or insert css rules into the header of the site dynamically, triggered by buttons in the site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Toggle (multiple) categories' visibility, plus Infinite Scroll’ is closed to new replies.