Sababaa
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF Content Analysis for Yoast SEO] Issues with ACF Blocks in Preview ModeHi, i’m at the same state, my clients use only preview mode and it’s not counted in analysis.
Could be great to have this nice feature!
Regards.
Hello,
Amazing hack that isolate the css, i will test it.
I heard about shadow DOM too to isolate like iframe maybe it’s will give you ideas.
Regards.
Hello,
Thank you for your time!
You confirm my fears, I thought the CSS preview was “outside” the admin CSS. I will not check every class for every preview block i will create.
I will find others solutions, it’s ok!
Regards
Hi,
Finally, with your code, i wroted something more easy :
add_action('wp_head', 'cli_add_bar_class', 9); function cli_add_bar_class() { if (class_exists('Cookie_Law_Info_Public')) { ?> <script type="text/javascript"> jQuery(document).ready(function() { if (jQuery('.cli-bar-container:visible').length > 0) { jQuery('.bt-form-sticky').addClass('test'); } //remove class after consent jQuery('.cli_action_button').click(function(e) { e.preventDefault(); if (jQuery(this).attr('data-cli_action') == 'accept') { jQuery('.bt-form-sticky').removeClass('test'); } }); }); </script> <?php } }
I’he just had my class “test” on the div who need to move.
Thank you.
My website can’t be share before launching. It’s a private project, sorry.
No error in console, no cache system.
Some screenshot to help you :
https://i.gyazo.com/ff52c65fd87c6c0bf04603483afbc69a.png
https://i.gyazo.com/6e7578bc18d29a91a1832349183a8219.pngHi,
The code do what i want, thank you!
Another question, when i want to detect if “cookie-law-info-bar” has class “cli-bar-active”, my js don’t work.
In console, this return false:
console.log(jQuery('#cookie-law-info-bar').hasClass('cli-bar-active'));
If i try another class, it’s return true:
console.log(jQuery('.bt-form-sticky').hasClass('bt-form-sticky'));
My full code :
$(document).ready(function() { if (jQuery('#cookie-law-info-bar').hasClass('cli-bar-active')) { jQuery('.bt-form-sticky').toggleClass('test'); } });
Forum: Plugins
In reply to: [Knowledge Base documentation & wiki plugin - BasePress Docs] errorHi,
I have the same error :Warning : "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/3/d624442896/htdocs/wp-content/plugins/basepress-premium/includes/class-basepress-cpt.php on line 622 Warning: Cannot modify header information - headers already sent by (output started at /homepages/3/d624442896/htdocs/wp-content/plugins/basepress-premium/includes/class-basepress-cpt.php:622) in /homepages/3/d624442896/htdocs/wp-admin/includes/misc.php on line 1196
I have the premium license and all works before today.
Regards
Problem solved.
For help somebody else, you need to remove the global widget from page.