Back to Community

Why Your CookieYes Banner Flashes and Disappears (And How to Fix It)

Content

One of the most common issues users report with the 'CookieYes – Cookie Banner for Cookie Consent' plugin is the banner briefly flashing on the screen before vanishing completely. This can be frustrating, as it prevents you from collecting user consent and leaves your site potentially non-compliant. Based on community reports and solutions, here are the most likely causes and how to resolve them.

Why This Happens

The banner's sudden disappearance is typically not a random bug but a symptom of a conflict. The banner script loads, attempts to display, but is then almost immediately hidden or blocked by another process on your website.

Common Solutions to Try

1. Check for Ad Blockers and Browser Privacy Settings

This is by far the most frequent culprit. Many ad blockers and privacy-focused browsers (like Brave) have built-in filters that automatically block elements they identify as consent pop-ups.

  • For Testing: Disable your ad blocker (e.g., AdGuard, uBlock Origin) and try accessing your site in a private/incognito window. If the banner appears, you've found the issue.
  • For Brave Browser: Users have reported that lowering the 'Shields' settings for your site, specifically changing 'Trackers & ads blocking' from 'Aggressive' to 'Standard' or 'Disabled,' can resolve the problem.

2. Investigate Caching and Optimization Conflicts

Performance optimization plugins (like LiteSpeed Cache) or server-side caching can sometimes interfere with the banner's JavaScript file, preventing it from running correctly.

  • Solution: Try excluding the plugin's JavaScript file from optimization. As mentioned in one thread, you may need to exclude cookie-law-info-public.js from minification, concatenation, or delay JavaScript settings.
  • Step: Clear all your caching layers (plugin, server, and browser cache) after making any changes to see if the fix worked.

3. Confirm HTTPS is Properly Enforced

A mixed-content issue where some site assets load over HTTP and others over HTTPS can cause session problems. This was specifically noted to cause the banner to reload on every page visit on iPhones.

  • Solution: Ensure your WordPress site URL is set to use https:// and that your web host forces all traffic to use HTTPS, often through a setting or .htaccess rule.

4. Rule Out a Theme or Plugin Conflict

Another plugin or your theme could be causing a JavaScript error that stops the CookieYes script from finishing its execution.

  • How to Test: Temporarily switch to a default WordPress theme (like Twenty Twenty-Four) and disable all other plugins. If the banner works, re-enable your plugins one by one to identify the conflict.

5. Verify the Installation Method

Are you using the WordPress plugin and a manual script? A conflict can occur if the banner is implemented twice.

  • Check Your Code: If you previously used the manual CookieYes script (which starts with <!-- Start cookieyes banner -->), it may still be in your theme's header.php file or a script manager. You must remove this manual code if you are now using the WordPress plugin.
  • Google Tag Manager Warning: Do not implement the CookieYes tag via Google Tag Manager (GTM) while the WordPress plugin is active, as this will create a direct conflict.

What If None of This Works?

If you've worked through these steps and the issue persists, the problem could be more specific to your host or configuration. The best course of action is to start a new thread on a support forum like this one. Be sure to include your website's URL so others can inspect the issue directly.

Related Support Threads Support