• Hello,

    I am using Cookie Law Info for quite some time now and It’s a great plugin. Not long ago I reinstalled WordPress and used my existing WP database. I placed the plugins back into the WordPress site and everything was working great, absolutely no problems at all.

    I recently changed the background color of the Cookie Law Info banner and now the pop-up banner will not show up at all. The little tab isn’t showing either. It just stopped working. I can’t find the plugin in the code either

    I deleted the plugin and reinstalled the plugin a couple of times. I also checked the database for Cookie Law Info data, but couldn’t find any.

    I’m using the same WordPress version (latest) and the latest version of Cookie Law Info. It just happend this morning and have been trying to fix it since.

    I searched the forums, but I couldn’t find anything who has encountered the same problem as I or anything usefull for a solution to the problem.

    Is there anyone who is familiar with this problem or can help me?

    Regards,

    Stefan

    https://wordpress.org/plugins/cookie-law-info/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Richard

    (@richardashby)

    Hi, thanks for letting me know. I haven’t come across this before but let me know your URL and I’ll take a look. All the best, Richard

    Richard

    (@richardashby)

    Hi,

    A couple of things:

    – Did you re-activate the plugin? Make sure it is activated.
    – Did you add or upgrade anything else at the same time?
    – Are you running any cacheing software e.g. W3 Total Cache or cloudflare? If so, refresh the cache

    Reason I say this is because:
    – If nothing is showing then it sounds like the plugin isn’t activated
    – If you can’t find the plugin code then it sounds like the plugin isn’t activated or installed
    – Changing the bg colour wouldn’t ever stop it from working
    – If you’re running cacheing software then everytime you change something on the backend you need to refresh the cache (regardless of which plugin, works the same for all)

    If that doesn’t fix it and you still need help then do let me know your URL but it sounds like the problem probably isn’t the plugin in this case.

    Hope that helps!

    Thread Starter Stefan

    (@stecer)

    Hi,

    Thanks for the help! I found out, that it has something to do with my theme. If I select a theme like Twenty Twelve it shows up like it supposed to do. But if I go back to my own theme it’s not there.

    – Yes I re-activated the plugin
    – No, not that I’m aware off.
    – No I’m not

    I think I’ts a problem with my code or something. But it did occur when I changed the background on the plugin. It probably got refreshed or something… If I select Twenty Twelve I see the code in the Mozilla Dev Tools, but if I select my own theme it’s not there.

    I’m working on a company website and the content is already there, they won’t appreciate me sharing the website publicly. Is there a way to send you this information in a private message?

    Again thanks for the help!

    Regards,

    Stefan

    Thread Starter Stefan

    (@stecer)

    Hi,

    Ok, I was trying out some things and when I deactivated the SEO plugin by Yoast. Suddenly the Cookie Law Info tab was back. When I re-activated the SEO plugin it was still there. So I think there was some kind of conflict with the SEO plugin. Maybe you want to check that out, but I suspect this is something that can’t be replicated.

    I got another problem though. I found out it was not working on the frontpage, so I’ll have to check that out.

    I’ll keep you posted!

    Regards,

    Stefan

    Richard

    (@richardashby)

    Hi

    Check your theme uses wp_head() and wp_footer(). If the plugin code doesn’t show up that’s why. Also check that your theme uses wp_enqueue_scripts() and doesn’t hard code e.g. jQuery.

    That should do it!

    Thread Starter Stefan

    (@stecer)

    Hi,

    Thanks for those pointers. Yes I have both in the header and footer. I use enqueue scripts to use jQuery. I have torn down the frontpage “brick” by “brick”. I luckily made the frontpage out of different files so I have scoped the problem to two PHP files. If I don’t load these PHP files into the frontpage, the plugin works just fine. If I do load these files, nothing appears.

    Were getting there. 🙂

    Regards

    Thread Starter Stefan

    (@stecer)

    Hi,

    I looked at the PHP files, and there were inline scripts in the files. I guess I just copied and pasted it in from another project. >< So, I think I didn’t notice this till I made changes to the background color.

    I can’t understand how this would affect other pages though. The deactivation and reactivation of the SEO plugin by Yoast solved the problem on all the pages with exception of the frontpage.

    Do you have any idea if this script could affect other pages in some way?

    Thanks, again. I really appreciate all your help.

    Regards,

    Stefan

    Richard

    (@richardashby)

    Hi Stefan,

    I really don’t think the plugin is affecting other pages I just think that probably your theme had a few issues which you’ve now ironed out. The plugin works on the standard themes and if you (like me) tinker with themes then sometimes it’s easy to accidentally introduce a bug. I know this because I’ve done it myself 🙂

    See http://www.cookielawinfo.com/troubleshooting for more info on fixing wp_head and wp_footer. The WP codex is the authoritative resource for theme design though.

    All the best with your theme!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cookie Law Info disappeared from frontpage’ is closed to new replies.