Tagged: Cookie Consent
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 ;)
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=/";
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).
You must be logged in to reply to this topic.