[Support request] Cookies disclaimer

Home Forums Support [Support request] Cookies disclaimer

Home Forums Support Cookies disclaimer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #778089
    Jordi

    Hi! Want to add for a cookies consent bar with this code

    < script src=”http://mydomain.com/cookiechoices.js”>&lt; /script>
    < script>document.addEventListener(‘DOMContentLoaded’, function(event) {
    cookieChoices.showCookieConsentBar(‘Usamos cookies para mejorar los servicios y mostrar publicidad según su navegación. Si continúas las aceptas. + Info.’, ‘Aceptar’, ‘aquí’, ‘http://mydomain.com/url-del-aviso-de-cookies/&#8217;);});< /script>

    The insctructions say to put this code in the footer of theme, how can I put it without change the core footer php?

    Thank you

    #778093
    David
    Staff
    Customer Support

    Hi there,

    you can add it to the WP_footer hook using the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    #778110
    Jordi

    Thank you David, but with this option shows direct the script code and no like this website https://portalesdeempleo.es/ (look at bootom of site the cookie bar)

    #778415
    Leo
    Staff
    Customer Support

    Are you sure the code itself is working?

    Did you replace mydomain with your actual domain?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.