• Resolved foolevil

    (@foolevil)


    Hi!
    This is driving me nuts. I installed Complianz a week a go to this domain and it worked ok. I migrated the site to Local on my Mac, and after fewe days moved it back to minnalindgren.fi at server and now when I activate Conplianz the banner pomps up all the time, no not on on every page.
    Just on the pages that use WP post articles in content.
    No matter what I click on the banner, it does not affect.
    What should I do?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @foolevil,

    I currently don’t see our plugin activated on your site so I can’t check it from the front end. The issue is usually a javascript error in another plugin, caching, or minification.

    To check this, please deactivate all other plugins on your site, and switch to a default WordPress theme. If the issue is gone, you can now find the cause by switching your plugins on one by one.

    If you have a console error on your browser (right click on screen, inspect element, console), please post it here as well.

    Hope this helps, let me know!

    Kind regards, Kim van Dijk

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I just checked, and currently see the banner active on your site. The problem is that the cookies are stored on https://minnalindgren.fi/info

    The plugin takes the domain and path from the site_url in the settings.

    You can override this by forcing the cookie path to be empty:

    /**
     * Force consent cookies on the root as shown below, or choose a subfolder
     * Add subfolder between '' on line 9 e.g. /subfolder/
     * @param string @path
     * @return string
    */
    function my_cookie_path($path) {
        return '';
    }
    add_filter( 'cmplz_cookie_path', 'my_cookie_path');

    You can add this as a mu-plugin:
    https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    Please note that you need to clear your browser cache to ensure your current cookies are cleared.

    Thread Starter foolevil

    (@foolevil)

    Oh yes! Now it works perfectly fine. I sort of thought about subfolder… forgot it. Thank you!

    K

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Banner showing up again on some pages’ is closed to new replies.