Home Forums WoodMart support forum Header banner cookie options

Header banner cookie options

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #336985

    ToriTori38
    Participant

    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

    #337041

    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

    #337094

    ToriTori38
    Participant

    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

    #337130

    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

    #337138

    ToriTori38
    Participant

    OK great news. Many thanks Elise

    #337206

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Header banner cookie options’ is closed to new replies.