Modal pop-up leading to terms and conditions

Hi there!

I was looking at the potential of coding in a modal where it has two options to pick from and in return, it sends the user off to the relevant terms & conditions. However, I am looking at the idea of coding it to use a cookie to determine if the user has already accepted the terms&conditions before.

My first question is regarding where this should exist – I am a bit new to the whole world of wordpress, however I see the ability to add HTML to things like the header, footer, etc., but I get a bit confused when it comes to doing things like getting/setting a cookie, is it best to just include it in the HTML as a <script> tag? Or is it better to have it elsewhere?

1 Comment
  1. Include your modal and cookie script in the footer of your WordPress site with a <script> tag, this ensures that your HTML load first

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer