Header banner cookie options
-
Hello,
Is there any way we can automatically make the header banner cookie reset for each new browser session or change the cookie life duration? We use the header banner a lot to advertise special offers. If a customer clicks it away then they will not see it again next time they coem to the site, even though our speical offer might have changed.
I know we can manually do this in settings, but we would like a more automated way to do this (ie adjusting cookie lifespan).
Thanks
Hello,
Unfortunately, there is no option to automatically make the header banner cookie reset for each new browser session, you can disable the close button in the header banner and it will always appear.
If you have any questions please feel free to contact us.
Best Regards
It would be nice if you could in the future add the fucntionality to set cookie lifespan duration for example. But again, just an idea 🙂
Thanks Elise
Hello,
I have submitted the issue to our development team, we will add this feature to the nearest update.
Meanwhile please add this code to the functins.php of the child theme and set the number of days you need:
add_filter(
'woodmart_banner_version_cookie_expires',
function() {
return 60; // Days.
}
);
The code will work after the update.
Best Regards
OK great news. Many thanks Elise
You are welcome! We are here to help.
Wish you a wonderful day!
The topic ‘Header banner cookie options’ is closed to new replies.