Viewing 10 replies - 1 through 10 (of 10 total)
  • Same problem on
    https://www.thebestsrl.com
    after automatic update to 4.5.2.

    Same here!!!….I cannot understand why it is not working!!!

    Plugin Author Marco Milesi

    (@milmor)

    Hi,
    does this happen with standard theme too?

    @ivandeleo: i see it’s working ??

    Ciao,

    I have not tried that. But with the theme I am using (Enfold) I hat to revert to a past version of javascripts and everything restarted to work.
    I will let you know if it will happen again after the next update of WordPress.

    Yes, i add this code at the end of file functions.php

    function modify_jquery() {
    if (!is_admin()) {
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ‘https://code.jquery.com/jquery-1.11.3.min.js’);
    wp_enqueue_script(‘jquery’);
    }
    }
    add_action(‘init’, ‘modify_jquery’);

    and everything is ok!
    Thank you!

    I had the same problem – the button is not working.
    I had to modify slightly the code in order to make this work.
    Changed:
    $('#pea_cook_btn, .eucookie').on('click', function () {
    to:
    $('#pea_cook_btn, .eucookie').live('click', function () {

    Thread Starter mezzomondo

    (@mezzomondo)

    George this solution worked for me, thank you.

    Hi guys,

    I tried with George’s code change but my button still doesn’t work (as in, it works, but the cookie banner won’t disappear). When I tried Ivandeleo’s solution I didn’t even figure out which would be the file function.php (all phps I find are the general cookie-law.php, class-frontend.php., default-, and tinymce.php).

    So I guess before I ruin my entire network or db, I figured I’d rather ask…..anyone have another solution on this?

    Plugin Author Marco Milesi

    (@milmor)

    Hi @julia1982, i didn’t test @ivandeleo’s solution, but you can try it as follows:

    Create a new php file, let’s call it custom-plugin.php with the following code:

    <?php
    /*
    Plugin Name:  Custom Plugin
    Description: Custom edit for EU Cookie Law
    Version:      0.1
    Author:       Julia
    */
    
    function julia_modify_jquery() {
    if (!is_admin()) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'julia_modify_jquery');
    
    ?>

    Upload custom-plugin.php to wp-content/plugins and activate the plugin from WordPress admin dashboard.

    To me none of the solutions are working…any help?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Button "Accetto" not working’ is closed to new replies.