-
AuthorPosts
-
April 16, 2016 at 10:24 am #615405
Hi support
The other day you were a great help to me.
I have an issue to make my coockie pop up plugin to work after updating the theme and WP itself.
Before I placed the script in the copyright-box under Enfold/footer.I doesn’t work now, and I have the same issue on http://www.stoholmhundeskole.dk (+ raginiinfo.dk).
This is the code, and I am afraid to xxxx it up, if I follow the answers you gave another user who asked the same. I am not able to read code yet.Can you guide me, like detailed?
Thank you in advance.
Br. Ragini
<!– Begin Cookie Consent plugin by Silktide – http://silktide.com/cookieconsent –> <script type=”text/javascript”> window.cookieconsent_options = {“message”:”Jeg benytter cookies til at indsamle besøgsstatistik, forbedre brugeroplevelsen og målrette markedsføringen af Webklar og mine samarbejdspartnere. Når du bruger mit site, accepterer du brugen af cookies.”,”dismiss”:”Det er ok, jeg vil gerne fortsætte”,”learnMore”:”Jeg vil gerne vide mere om coockie-politik”,”link”:”http://raginiinfo.dk/velkommen/privatlivspolitik/”,”theme”:”dark-bottom”}; </script> <script type=”text/javascript” src=”//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js”></script> <!– End Cookie Consent plugin –>
April 17, 2016 at 9:56 am #615761Hey Raginilk,
You could try something like this in your functions.php file:
function add_custom_code() { ?> <script type=”text/javascript”> window.cookieconsent_options = {“message”:”Jeg benytter cookies til at indsamle besøgsstatistik, forbedre brugeroplevelsen og målrette markedsføringen af Webklar og mine samarbejdspartnere. Når du bruger mit site, accepterer du brugen af cookies.”,”dismiss”:”Det er ok, jeg vil gerne fortsætte”,”learnMore”:”Jeg vil gerne vide mere om coockie-politik”,”link”:”http://raginiinfo.dk/velkommen/privatlivspolitik/”,”theme”:”dark-bottom”}; </script> <script type=”text/javascript” src=”//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js”></script> <?php } add_action('wp_footer', 'add_custom_code');
Otherwise I would suggest you to have a look at a cookie law info plugin for WordPress instead.
Regards,
Rikard- This reply was modified 8 years, 7 months ago by Rikard.
April 17, 2016 at 12:14 pm #615778Hi Rikard
Thank you for your support. I guess I have to get a code-guy to help me, I am afraid to mess it all up…
I’ve tried some of the WP plugins, but they have very limited options.I generated a code from here: https://cookie-script.com/
It is the exact setup I want, but I just don’t understand is how I made it work before, and now after updating theme and CMS, it just won’t appear.And back then I placed it in the copyright field, but maybe that was all wrong?
Br. Ragini
April 18, 2016 at 9:22 am #616202Hi,
Send us admin login details in private and we’ll see if we can add it for you.
Regards,
RikardApril 18, 2016 at 9:03 pm #616799Hi Rikard
I am so glad you want to help me.
Yould I generate 2 different scrips, or can it be used for two sites?
Looking forward to hear what I did wrong and how you (hopefully) fixed it :)
Br Ragini
April 22, 2016 at 5:23 am #619492 -
AuthorPosts
- You must be logged in to reply to this topic.