Cookie consent

I have a site that should include cookie consent bar. Looking forward to use one of the most known Opensource solutions for this. As the site is going to be in Europe with cookie law. I have tried to install once this open source solution and it works great as a cookie notifier. This is how I created the notifier via the wizard and included it into a child theme hosted locally: https://cookieconsent.insites.com/download/

But now if it should include a configuration to a opt into cookies and not only inform the user of them. It needs to needs to be modified like this: https://cookieconsent.insites.com/documentation/disabling-cookies/

Where should I enter these functions if the first part was addad in the header via child theme, any ideas?

All the best!

Hey,

You can add your code like this:

  // Things the new action does.
}
add_action( 'x_before_site_begin', 'my_new_action', 10 );```

This article will help you to understand the x_before_site_begin -> https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208
1 Like