Plugin Author
Aert
(@aahulsebos)
Hi @marpegue,
Are the page templates you used from Storefront as well? Please try enqueuing jQuery with an MU plugin;
The code: https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/enqueue-jquery.php
How-to example: https://complianz.io/set-cookies-on-root-domain-mu-plugin/
Hope this helps, regards Aert
Hello,
Thanks for your quick response.
I have followed all the steps but nothing has changed.
I have created the mu-plugins folder in wp-contents and inside I have added a php with the link code: https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/enqueue-jquery.php
What else can I do?
Plugin Author
Aert
(@aahulsebos)
Hi @marpegue,
What is the difference between those 2 pages?
I can see one is based on Storefront and WooCommerce, is the other a custom template?
regards Aert
Hi!
On the page that does NOT show the banner, it is a php that I have made from 0, so yes, it is a custom template.
I have created a page and put that template on it.
Greetings, Marta.
Hello @marpegue,
The fact that the Banner does not appear on the pages where a custom template is used, indicates that some WordPress hook (which Complianz needs) is not available in this template.
As I don’t have access to your custom theme/templates, my advice would be to check whether wp_head() and wp_footer() are being called correctly, because the Cookie Banner will not appear if these hooks are not present.
Kind regards,
Jarno
Hello @jarnovos
Thank you very much, that was it!
I did not put the header and footer of the parent theme because they were not the styles like my child theme, but I have been able to solve it!
-
This reply was modified 4 years, 11 months ago by
marpegue.