How to keep bar closed after session ends
-
This is an excellent free plugin.
I however wanted to use it for a cookie notification bar which when closed, never reappeared (unless cookies were deleted of course)
Unfortunately, the default expiry is when the session ends.
To change this open wpfront-notification-bar.jsGo to line 79 and replace
$.cookie(keep_closed_cookie, 1, {path: “/”});
with
document.cookie = “wpfront-notification-bar-keep-closed=1; expires=Thursday, 31 Dec 2099 11:59:59 PM; path=/”;
Hopefully this helps someone in the future who is trying to use this plugin to achieve the same results as me.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to keep bar closed after session ends’ is closed to new replies.