Plugin Contributor
Aert
(@aahulsebos)
Hi @juz89,
Could you share your URL so I can have a look?
regards Aert
Yes sure, the url is prensalink.com
Thank you!
Plugin Contributor
Aert
(@aahulsebos)
Hi @juz89,
I was too fast, you created your own template. This could be a cool solution, but you will need to hook into our javascript, complianz.js & cookieconsent.js. Both are currently not loaded on your website.
regards Aert
Thank you for your answer.
How can I load these .js in my website?
Regards
Hi @juz89,
The Complianz javascript is looking for the variable ‘complianz’, which contains several settings, for example which privacy law your banner will be based on (gdpr, Pipeda, CCPA).
This is added with an inline script. This inline script is now missing, as you have only added the script files.
If you add
do_action( 'wp_footer' );
To the footer of your theme, WordPress can insert all necessary scripts automatically.
Helo Rogier, thank you for your answer! Now it works!
I only have one more problem. As you can see in my website if you click in the button “¿Cómo funciona”, there is a modal with a youtube video. It doesn’t work after I accept the cookies.
Regards,
If you remove the https://code.jquery.com/jquery-3.2.1.slim.min.js reference, it should work.
you have now two jquery libraries on your site. The normal one from WordPress, and the “slim” version. This one does not include some of the functions Complianz uses. This is causing the issue.
Thank you very much! Now it works!!