• Resolved carolineigoo

    (@carolineigoo)


    Hi,

    I installed your plugin on a couple of sites and it is working as expected on one of them but on this one the banner isn’t showing.
    I’ve looked at this guide https://complianz.io/cookie-banner-does-not-appear/ and nothing of that seems to help. There are no console errors, have cleared cache and tried in a private window. I have checked and the plugin dashboard confirms that the site should be using a cookie banner and that it is enabled.

    When I inspect the code it doesn’t seem like the js is loaded nor is the banner itself.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi! I have the same issue. In the HTML code (in incognito mode) I can see the CSS include:

    /wp-content/plugins/complianz-gdpr/assets/css/cookieconsent.min.css?ver=5.5.3

    …but there isn’t the JS (as I found in my other websites):

    /* <![CDATA[ */
    var complianz = { …

    …so the issue can’t be related to jQuery version conflict or z-index CSS issue, must be on the PHP side.

    Thanks in advance,
    Carles.

    • This reply was modified 3 years, 2 months ago by wp-centrics.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @carolineigoo,

    I see that the site doesn’t appear to set any (non-functional) cookies, the plugin likely detected this as well, and does not activate the Cookie Banner as a result.

    You can verify if this is the case by navigating to Complianz > Dashboard and looking for the notice stating “Your site requires a cookie banner, which has been enabled.”

    Hi @wpcentrics,

    Would it be possible for you to create a separate thread for this issue, and perhaps provide an URL to the website in question as well? These issues can look very similar, but they could have entirely different causes.

    Kind regards,
    Jarno

    Thread Starter carolineigoo

    (@carolineigoo)

    Thank you for your message.

    We are using third party cookies, such as Google Analytics and recaptcha, which I set up during the setup.
    Yes on the dashboard it says that the site requires a cookie banner and that it is enabled.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @carolineigoo,

    Have you already attempted to purge/clear cache in WP Fastest Cache? Because it seems (by looking at the page source) that the cached version was created on 18-12-21.

    If not, could you temporarily disable WP Fastest Cache, so we can check whether that has an influence on the behavior?

    Kind regards,
    Jarno

    Thread Starter carolineigoo

    (@carolineigoo)

    Hi @jarnovos

    Yes I had cleared the cache a few times since installing, but have now diabled it just to be sure it isn’t interfering but the cookie banner is still not showing.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @carolineigoo,

    It appears that jQuery isn’t present on the site, which Complianz 5.x requires to load. There’s two main solutions you can attempt:

    1) Update to Complianz 6.0, which no longer requires jQuery to be present on the site. Please find this version on GitHub (to download, click Code > Download .ZIP): https://github.com/Really-Simple-Plugins/complianz-gdpr

    2) Stay on the currently installed Complianz version, and try enqueuing jQuery by placing the attached code as a PHP file in the folder /wp-content/mu-plugins/.

    <?php
    /**
     * If jquery is missing, Complianz won't run on the front-end.
     * We use a high priority, to make sure there's no override
     */
    
    function cmplz_custom_enqueue_jquery() {
    	wp_enqueue_script( 'jquery' );
    }
    add_action( 'wp_enqueue_scripts', 'cmplz_custom_enqueue_jquery', PHP_INT_MAX - 100 );
    

    Just let me know if any further assistance is needed.

    Kind regards,
    Jarno

    Thread Starter carolineigoo

    (@carolineigoo)

    Hi @jarnovos

    I’ve tried both solutions, neither worked.
    I have left it as solution 2 right now, also we use jquery in the theme js so I know that has always been loaded and worked on the site.

    Cheers,
    Caroline

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @carolineigoo,

    The easiest way to rule out the possibility that it is related to the theme, would be by temporarily switching to a default WordPress theme such as Twenty Twenty One.

    If the banner does appear in that case, the issue could be related to your theme missing a WordPress function that Complianz needs, such as wp_head().

    Kind regards,
    Jarno

    Thread Starter carolineigoo

    (@carolineigoo)

    Hi @jarnovos

    Thank you for your help, found the issue now.

    Cheers,
    Caroline

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cookie banner not showing’ is closed to new replies.