I tried this first but couldn’t get it to work. The cookie has to be set via functions.php and then needs to be checked for on the first line of the header.php file before any other content loads. WP tags like is_page() don’t work before the page loads.
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Place a cookie when one specific page has been visited?’ is closed to new replies.