I'm trying to set the cookie to my site to hide a div on click action. Description of the problem.
- I wanna set the cookie for the whole site not for particular page. I'm setting the cookie
on clickthe div by
when I'm clicking the div on home page the div is invisible throughout the site. but if I'm trying to remove my div on other page it is not invisible throughout the site.
I've tried the following functions of the wordpress codex
by these methods I've named the domain but it is not working. I've also tried
/ for the domain name it is also not working.
these all are not working for me. please suggest me some other method to do that.
My plugin site consist of 4 pages
url as follows