Search code examples
jqueryhtmlwordpressshow-hide

Hide div on click (and stay hidden even when the page is refreshed)


I am currently attempting to make a notification box that can be removed when clicking "X". The problem is that it re-appears every time the site is loaded. So when visiting another part of the page the div re-appears.

Is it possible for it to stay away until visitors next visit of website in any way? Or maybe not make it load again before X minutes?


Solution

  • Take a look at PHP 5 Sessions. This is a start in the right direction.