Tagged: Cookie Consent
Hey Guys,
i’m running a multisite installation with this structure:
domain.com/ (Running Enfold, active Cookie Consent with Matomo Tracking ID1)
domain.com/shop/ (Shop-Subsite, running Storefront with WooCommerce, Matomo Tracking ID 1)
I prefer your Cookie Consent Implementation – it works great!
So my question: Is it possible to make the enfold cookie consent function globally available for subsites within the multisite network? So that the same Enfold cookie notice pops up if an user starts a session on the Subsite which is running storefront?
Hope you know what im talking about ;)
Regards,
Mario
Hey eny4W,
I didn’t test it but you could try to replace line 53 in wp-content\themes\enfold\js\avia-snippet-cookieconsent.js
document.cookie = CookieName+"="+CookieValue+expires+"; path=/";
with
document.cookie = CookieName+"="+CookieValue+expires+";domain=.example.com;path=/";
Of course you need to replace example.com with you domain, however keep the dot before your domain (ie .mydomain.com).
Reference: https://stackoverflow.com/a/23086139
Best regards,
Dude
Thank you Dude,
It work’s for me.
Regards.