• Resolved wp-centrics

    (@wpcentrics)


    Hi! I configured compliand, in the same way as in other sites. But in this, it not works. 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 topic was modified 3 years, 2 months ago by wp-centrics.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpcentrics,

    This could be related to the theme being used on the site. For instance, when the theme doesn’t include certain functions, such as wp_head().

    Could you verify whether this issue persists after you switch to a WordPress default theme, ?such as Twenty Twenty One?

    Kind regards,
    Jarno

    Thread Starter wp-centrics

    (@wpcentrics)

    Hi @jarnovos, thank you for your quick response.

    You’re right, there is a theme-related issue.

    Now solved.

    Maybe it can help someone:

    Seems the cookie banner needs the standard jquery script enqueuing hook to print his own code. If you deregister this and call jquery in any other way, the banner will not be shown.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpcentrics,

    Thank you for confirming and sharing your solution, much appreciated.

    Just a quick note: Complianz 6.0 no longer depends on jQuery, so using that version should avoid this issue altogether. It will be released here on the WordPress repository soon, and is already available on GitHub: https://github.com/Really-Simple-Plugins/complianz-gdpr

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