• Resolved jonny-s

    (@jonny-s)


    Hi,

    I just got the nice idea of accordion-blocks that will remember open/closed status for logged-in users. So that some introductory info isn’t hidden at all to logged in users, but they may hide them to get faster to relevant content the next visit.

    Is this plugin capable of this? Or do you know another one that is?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    This plugin is not capable of showing/hiding the content by default based on whether the user is logged in, and this type of feature is beyond the scope of this free plugin. I’m not aware of any alternatives that do that, but I’m sure it exists somewhere. You could also write some custom code that makes it possible using this plugin, but I don’t have any guidance on where to start with that.

    Thread Starter jonny-s

    (@jonny-s)

    Hi Phil,

    thanks for reading my question and your answer! My point is not to open based on login status, but remember status per user (or visitor) (means saving status to user-meta or even in a simple cookie).

    As a starting point, I found this: https://www.jqueryscript.net/accordion/Remember-Toggle-State-Accordion-Cookies.html

    But it needs improvemend, as I was able to understand the code.
    You would need to add a unique id to each accordion-container and save open/closed status array-like, so that the one cookie may store all the statuses of accordion-blocks used over a website.

    Unfortunately I’m still not familiar with js or jQuery to code this by my own. :/ So I would be really glad if you may find time to have a look at this.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remember open/closed status for logged-in users’ is closed to new replies.