enable-cookie time

6 replies · opened Jan 20, 2017

GgmohdezbJan 20, 2017

Hello,

I am using a modal-on-load to my homepage, and I want to set the cookie for one day, so if people visit my site today they will see one the popup and the next day the popup will show again, where can I change the value of the cookie or set how many days it will be displayed.

Thank you

SSemicolon WebSTAFFJan 27, 2017

Hello,

Find the following code in the js/functions.js File inside the modal: function() Function Block:

var elementCookie = $.cookie( elementTargetValue );

and replace it with:

$.cookie( elementTargetValue, '1', { expires: 1 } );

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

GGreggBazinJun 12, 2017

Hi there,

If I want an expiration in 7 days, is this correct?

$.cookie( elementTargetValue, '7', { expires: 7 } );

Thanks,

Gregg

SSemicolon WebSTAFFJun 13, 2017

Hello,

Yes Of Course! This is the correct code!

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

WWebink74Aug 15, 2017

Hello,

I can't find the way to not make the pop up showing again when navigating across folder. I need to enable the cookie for the whole site even if the person get in by a sub-folder.
Is this correct :

var elementCookie = $.cookie( elementTargetValue, '1', { expires: 1 }, { path: mydomain.com/ } );

SSemicolon WebSTAFFAug 15, 2017

Hello,

Simply use { path: '/' }.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

WWebink74Aug 16, 2017

Well, thank you

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard
enable-cookie time · Canvas Template Support