Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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

    #1436040

    Hey 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,
    Mike

    #1436727

    Hey 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.js

    https://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ünter

    #1437311

    Thank 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.

    #1437483

    Hi 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ünter

    #1437629

    Hi 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

    #1437785

    Hi,

    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ünter

    #1437983

    Hey Günter,

    thank you very much once more :-)
    Mail address is within the private content.

    Best,

    Jan

    #1438005

    Hi,

    See private.

    Best regards,
    Günter

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