Privacy policies / Cookie Consent with no plugin
There are tons of WordPress plugins that allow you to set up you privacy policy or cookie consent scripts. With GeneratePress Premium, though, you have the ability to hook any script into your website including privacy/cookie scripts.
You can use external sites like PrivacyPolicies, Cookie Script, etc and set up your policies the way you want. After you follow the simple steps that each site might incorporate, you just copy the code and paste it inside a GP hook element.
Set the hook to wp_footer
and make sure you make the script available for the entire site:
Click here to get started creating your own basic Cookie consent script. You can then copy and paste it inside your hook element.
Adding it in the footer will mean the code loads after the page, so may reduce render blocking, so better initial page load times. This is especially true for GP speed addicts.
PS : Providing a copy-paste code would make your article even more useful. 😉
Hey, thanks for replying. You are right, I have updated the article and also provided a link to a free basic Cookie Consent generator for easy copy/paste according to one’s requirements.