Archived topic
I need to insert a code before the tag
1 reply · Started by Gonzalo Gregori Romero on October 5, 2019
I need to insert a code before the tag </body>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#eb6c44",
"text": "#ffffff"
},
"button": {
"background": "#f5d948"
}
},
"theme": "edgeless",
"content": {
"message": "Utilizamos Cookies a terceros si quieres saber mas pulsa en política de cookies",
"dismiss": "Adelante",
"link": "Leer más",
"href": "https://electronicssoftware.net/politica-de-cookies/"
}
});
</script>
Hi there,
Try the wp_footer hook in hooks element:
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)