• Resolved noremlas

    (@noremlas)


    Hi, first of all say that I love your plugin.
    I’m trying to block the cookie from the Divi Bloom plugin, but I’m not succeeding. I tried with this, inserting it in the funtions.php:
    function bloom_script () {
    if (function_exists (‘gdpr_cookie_is_accepted’)) {
    / * supported types: ‘strict’, ‘thirdparty’, ‘advanced’ * /
    if (! gdpr_cookie_is_accepted (‘thirdparty’)) {
    wp_dequeue_script (‘et_bloom_optin_optin_7_custom_form_imp’);
    }
    }
    }
    add_action (‘bloom_script’, 100);

    but I am not succeeding, if you can check when the Bloom form appears, it loads said cookie, I would like to know if it can be blocked from loading the cookie until accepting the cookie policy. You can see it for example at: https://webparallevar.com/tabla-de-contenidos/
    thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @noremlas,

    Thanks for using our plugins.

    The Bloom for Divi is a premium plugin, we can’t support the Bloom customisations. You can contact Divi support for more guidance. Our plugin contains all the hooks and functions our plugin offers.

    Your code snippet provided above doesn’t seem correct, as the add_action(‘bloom_script’) is not connected to the correct function.
    You can try the code snippet below:

    function bloom_dequeue_script() {
      if (function_exists ('gdpr_cookie_is_accepted')) {
    		/ * supported types: 'strict', 'thirdparty', 'advanced' * /
    		if (! gdpr_cookie_is_accepted ('thirdparty')) {
    			wp_dequeue_script ('et_bloom_optin_optin_7_custom_form_imp');
    		}
    	}
    }
    add_action( 'wp_print_scripts', 'bloom_dequeue_script', 100 );

    Hope this helps.

    Thread Starter noremlas

    (@noremlas)

    Thank you very much for answering. I’ve tried it and it still doesn’t work unfortunately. I’m going to try to contact Divi-Bloom to see if they can help me. I will quote this thread and see if I get it to work, if they gave me the solution I would put it here in case someone else serves you. thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable bloom-Divi’ is closed to new replies.