Pop-Up

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

    John
    Participant

    Hello guys,
    I have a question for you.
    Can we set the cookies lifespan for popup on 3 hours?
    We are using Lumen theme, but also we want to do the same thing to WoodMart.
    Waiting for your replay,
    Thank you!

    #410607

    Luke Nielsen
    Keymaster

    Hello,

    The least we can set is 1 day. Paste the below code to the fucntions.php file in your child theme for activating it.

    if ( !function_exists('xts_change_time') ) {
    
        function xts_change_time() {
            return 1;
        }
    
        add_filter('xts_cookies_expires', 'xts_change_time');
    }

    If there’s anything else we can do, please get in touch.

    Kind Regards

    #410712

    John
    Participant

    Hey there,
    Many thanks, we are going to test it.
    All the best!

    #410848

    Luke Nielsen
    Keymaster

    Ok, will wait for your response.

    You can also reach out to us if you have any questions.

    Kind Regards

    #411643

    John
    Participant

    All is good from our side. Thanks again

    #411645

    Luke Nielsen
    Keymaster

    Hello,

    Perfect, In case you need any additional help, I’d be more than happy to assist you.

    Wish you all the best.

    Kind Regards

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

The topic ‘Pop-Up’ is closed to new replies.