Tagged: Cookiebot, feature request, GDPR, patch
-
AuthorPosts
-
February 28, 2024 at 3:10 pm #1435764
Hey there,
we currently move our clients from the Enfold Consent Management solution to Cookiebot.
Not because we or they were really unhappy with the Enfold solution, but they feel more comfortable using a widely adopted “standard” solution. Just for context.We patched Enfold to fully support Cookiebot where necessary. In general, Cookiebot works quite well with its “Auto” mode. But when external contents are loaded via JS things get tricky and require manual intervention.
Luckily you already had the necessary checks in place. They just need to be extended a bit. With no impact on users without Cookiebot. So there is no downside in adding support :-)
We opened a Feature Requests with the Patch files here already: https://github.com/KriesiMedia/Enfold-Feature-Requests/issues/91
This post is just for others to know and as a little and kind wish for an integration of the Feature Request :-)
Thanks and best Regards,
Jan
March 2, 2024 at 2:40 pm #1436040Hey Jan,
Thank you for opening the feature request, the Dev Team will review your recommendations/suggestions and reply there, Thank you for your patience.Best regards,
MikeMarch 8, 2024 at 11:32 am #1436727Hey Jan,
I tried to add a solution with WP filter – that would be a solution to maintain code in one place and also for other plugins to hook.
If you could please test it before we add it to final core.
1.) replace enfold\js\avia-js.js with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_10/js/avia.jshttps://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_10/js/avia-js.js
Check class aviaJSHelpers in this file.
2.) in the files you mentioned instead of your code add:
// allow 3-rd party plugins to hook (see enfold\js\avia-js.js aviaJS.aviaJSHelpers) if( window['wp'] && wp.hooks ) { allow_continue = wp.hooks.applyFilters( 'aviaCookieConsent_allow_continue', allow_continue ); }
3) To load WP hook js in enfold\functions.php around line 574:
wp_enqueue_script( 'avia-js', "{$template_url}/js/avia-js{$min_js}.js", array(), $vn, false );
replace with:
wp_enqueue_script( 'avia-js', "{$template_url}/js/avia-js{$min_js}.js", array( 'wp-hooks' ), $vn, false );
Thank you for checking in advance and your help.
Regards,
GünterMarch 15, 2024 at 3:00 pm #1437311Thank you Günter! We have this scheduled for around Easter to implement this into our DEV environments. I will get back to you as soon as I have feedback.
March 18, 2024 at 2:31 pm #1437483Hi Jan,
I’ve changed the implementation and put the relevant code js and php in config-cookiebot folder.
I think you are using https://wordpress.org/plugins/cookiebot/ – I added logic to only load the files when this plugin is active.
I would prefer to send you a complete version of Enfold (based on 5.6.11) including this implemention if you let me know where to send it (add it to private content field).
Best regards,
GünterMarch 19, 2024 at 5:57 pm #1437629Hi Günter,
I would love to give the update a shot on our staging environment.
Yet we do NOT use the official plugin. We have our own feature toggle API and platform MU-Plugins which handle all of this. Our code simply renders out the required script Tag when our toggles are enabled.
If you could add a filter to the check I will be more than happy to implement it in the relevant case
March 21, 2024 at 3:45 pm #1437785Hi,
I thought based on topic title you are using a plugin.
I’ve changed the implementation that this “feature” must be activated by user in child theme functions.php:
add_theme_support( 'avia_include_cookiebot' );
As there are too many files involved I would like to send you a complete copy of the theme to check. Let me know, to which E-Mail I can mail it please.
Best regards,
GünterMarch 22, 2024 at 8:33 am #1437983Hey Günter,
thank you very much once more :-)
Mail address is within the private content.Best,
Jan
March 22, 2024 at 12:46 pm #1438005 -
AuthorPosts
- You must be logged in to reply to this topic.