Hi,
Guys i'm very new to coding in any form and i'm trying to modify the opening logic of a wordpress plugin built on jquery.
The plugin is called TheThe Sliding panels. You can see the jquery here:-
http://www.get-me-heard.com/wp-content/plugins/thethe-sliding-panels/style/js/jquery.ttsp.js
The panel currently auto-opens when the page loads. Which is what I want, however I would like it so that once a user has clicked to close the panel, for it to stay closed even when navigating pages, until they decide to click open again.
I am aware that this would probably need the script to set a cookie when the panel is in the closed state which can then be used to surpress the opening of the sliding panel as the user navigates through the pages of the site until they decide to click to open the sliding panels again.
I would also need the cookie flushed when they leave the website so that the next time they return the panels auto open again.
Essentially I just dont want the users to have to click close every time they navigate throughout the website if they don't want to see the panels.
Can anyone help me with this?
NOTE: The plugin has several panels which you can choose from. I am only using the left panel and the right panel. They are all controlled within the jquery.
Thanks!
Guys i'm very new to coding in any form and i'm trying to modify the opening logic of a wordpress plugin built on jquery.
The plugin is called TheThe Sliding panels. You can see the jquery here:-
http://www.get-me-heard.com/wp-content/plugins/thethe-sliding-panels/style/js/jquery.ttsp.js
The panel currently auto-opens when the page loads. Which is what I want, however I would like it so that once a user has clicked to close the panel, for it to stay closed even when navigating pages, until they decide to click open again.
I am aware that this would probably need the script to set a cookie when the panel is in the closed state which can then be used to surpress the opening of the sliding panel as the user navigates through the pages of the site until they decide to click to open the sliding panels again.
I would also need the cookie flushed when they leave the website so that the next time they return the panels auto open again.
Essentially I just dont want the users to have to click close every time they navigate throughout the website if they don't want to see the panels.
Can anyone help me with this?
NOTE: The plugin has several panels which you can choose from. I am only using the left panel and the right panel. They are all controlled within the jquery.
Thanks!
Last edited: