• Hi,

    I want to have wordpress without many plugins. Thats the reason why I have used a JS code to show the cookie warning notification. Below I show you:

    <script>window.addEventListener("load", function(){window.wpcc.init({"colors":{"popup":{"background":"#e2f7d4","text":"#000000","border":"#7fc25e"},"button":{"background":"#7fc25e","text":"#ffffff"}},"content":{"href":"https://www.web.de","message":"This website uses cookies to ensure you get the best experience on our website. ","link":"Learn More","button":"Got it!"},"position":"bottom","padding":"small","margin":"small","fontsize":"small"})});</script>

    How can I translate the content?
    I have introduced the following code in functions.php
    pll_register_string ("Button", "Got it!", "Cookies");
    but the banner content is not translate.

    Any solution you can apply?
    Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Script translation’ is closed to new replies.