Trying to make a jQuery cookie hide/show box using JS Cookie, but I somehow can\'t make it work. The box won\'t display at all. I\'m using Shopify.
#pop-up
It does not work because you can only store strings in cookies. You store the string "true" instead of the boolean value true.
"true"
true
Try the following code where I replaced the check with != "true".
!= "true"
A working jsfiddle: http://jsfiddle.net/bqam0qb4/1/