• Resolved juz89

    (@juz89)


    Hello,

    I follow all the steps to see the banner on my website (clean cache, last jquery version, etc) and at the moment it’s not possible. I create the template by myself so probably I forgot to add something to see the banner. Could you help me?

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @juz89,

    Could you share your URL so I can have a look?

    regards Aert

    Thread Starter juz89

    (@juz89)

    Yes sure, the url is prensalink.com

    Thank you!

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @juz89,

    I was too fast, you created your own template. This could be a cool solution, but you will need to hook into our javascript, complianz.js & cookieconsent.js. Both are currently not loaded on your website.

    regards Aert

    Thread Starter juz89

    (@juz89)

    Thank you for your answer.

    How can I load these .js in my website?

    Regards

    Thread Starter juz89

    (@juz89)

    Hello again,

    I hook the js but it doesn’t work:
    https://i.ibb.co/Tg8L1Ld/Captura-de-pantalla-2020-11-04-a-las-12-35-32.png

    Regards

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @juz89,

    The Complianz javascript is looking for the variable ‘complianz’, which contains several settings, for example which privacy law your banner will be based on (gdpr, Pipeda, CCPA).

    This is added with an inline script. This inline script is now missing, as you have only added the script files.

    If you add

    do_action( 'wp_footer' );

    To the footer of your theme, WordPress can insert all necessary scripts automatically.

    Thread Starter juz89

    (@juz89)

    Helo Rogier, thank you for your answer! Now it works!

    I only have one more problem. As you can see in my website if you click in the button “?Cómo funciona”, there is a modal with a youtube video. It doesn’t work after I accept the cookies.

    Regards,

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If you remove the https://code.jquery.com/jquery-3.2.1.slim.min.js reference, it should work.

    you have now two jquery libraries on your site. The normal one from WordPress, and the “slim” version. This one does not include some of the functions Complianz uses. This is causing the issue.

    Thread Starter juz89

    (@juz89)

    Thank you very much! Now it works!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Doesn’t show the banner in frontend’ is closed to new replies.