Same problem on
http://www.thebestsrl.com
after automatic update to 4.5.2.
Same here!!!….I cannot understand why it is not working!!!
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 () {
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?
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?