Support » Plugin: Cookie Notice for GDPR » Notice doesn’t disappear on accept / refuse

  • Resolved geertvanderheide

    (@geertvanderheide)



    The plugin works well for me on several sites, but something’s wrong on one site (links below). The notice is shown properly, I can click accept or refuse (in Dutch), if I accept the cookies are placed including the cookie “cookie_notice_accepted” with value “true”, but somehow the notice still shows up on every page load, regardless of whether I accept or refuse.

    Site with the problem: https://www.np-aldefeanen.nl
    Site on same hosting with same plugin but no problem: https://www.elkevistelt.nl

    Neither site is using any caching or minification plugins, and the themes are well-built. I’ve checked all the settings and have tried re-installing the plugin to no avail. There are no errors in the console and I’m using the latest plugin version.

    What could be causing this?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Geert,

    I can tell you are using WPLM.
    I am not sure how this cookie notice plugin works with multilingual sites.

    It would not surprise me if the cookies get confused by it?
    Have you tried disabling wplm for a while to see if this still happens in that scenario? The fact that your other site ( NOT multilangual! ) is not having this problem, also seems to point in this direction…

    Always take a backup before testing please, and better yet, migrate a copy/backup to a subfolder so you can try out stuff without messing up your site!

    If this issue goes away as soon as wplm is out of the combo, I suggest you go to their forum and ask for help.

    I found this topic on WPLM, but did not get any wiser unfortunatelly:
    https://wpml.org/forums/topic/gdpr-compliance/

    • This reply was modified 2 months, 3 weeks ago by  LogoLogics.

    Thank you LogoLogics for pointing towards WPML. That is indeed the biggest difference between the two sites and this cookie plugin isn’t officially compatible with WPML. On the other hand, I have been able to translate the cookie notice through WPML, and other users here are also using the plugin with WPML. Even still, it may be the cause of the acceptance state not being properly set somehow.

    I have another WPML site that will need a cookie notice, so I’ll probably try another cookie plugin for that and see how it goes.

    I did notice that the plugin also sets css body classes (“cookies_not_set”, “cookies_set”, “cookies_accepted”, “cookies_refused”, whichever apply). I can use that to hide the notice through the theme’s stylesheet, practically solving the problem… but it’s more of a workaround.

    If anyone has any more suggestions regarding this problem, please let me know.

    Update: Problem solved. Turns out I just forgot that I removed the plugin’s own stylesheet through my functions.php, and that stylesheet was hiding the notice when needed. Now I just hide it through my own stylesheet and everything works fine.

    So for anyone else: if you remove the plugin’s stylesheet for optimization or to put the styles in your own stylesheet, then be sure to show / hide the notice using the css body classes that the plugin sets.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.