Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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/&#8221;,”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 –>

    #615761

    Hey 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, 8 months ago by Rikard.
    #615778

    Hi 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

    #616202

    Hi,

    Send us admin login details in private and we’ll see if we can add it for you.

    Regards,
    Rikard

    #616799

    Hi 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

    #619492

    Hi!

    Please post the the code on cookie-popup code pastebin.com. Try to use the wp_footer filter. Example:

    // cookie popup
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    	?>
    	<script type="text/javascript">
    	// CODE HERE
    	</script>
    	<?php
    }

    Regards,
    Ismael

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