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

    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

    #976963

    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

    #984843

    Thank you Dude,

    It work’s for me.

    Regards.

    #985004

    Hi barbarawsimon,

    Thanks for the feedback, glad you got it working.

    Best regards,
    Rikard

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