Hi, I recently migrated to the new Elements module on GPP 1.7 and migrated all my hooks and deactivated “Hooks” and “Page Header”. For some reason, my hooks no longer seem to work.
Here are the hooks I use.
For wp_head
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116104766-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-116104766-1');
</script>
Also wp_head
<link rel="stylesheet" href="https://use.typekit.net/lnt3pze.css">
And wp_footer
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#666666",
"text": "#efefef"
},
"button": {
"background": "#d46c5b",
"text": "#efefef"
}
},
"theme": "classic",
"position": "bottom-right",
"content": {
"href": "https://www.lesslikely.com/privacy-policy/"
}
})});
</script>