If you like our themes and support, please SHARE our website! https://theme-sky.com/wordpress-themes/

Okay
  Public Ticket #1401368
Implement Javascript code
Closed

Comments

  • David Ferrer started the conversation

    I need to implement this javascript code (Optingun) to insert a pop up:

    <script>
    function optingun_load(d, s, id,source) { var js, father = d.getElementsByTagName(s)[0];  if (d.getElementById(id)) return;  js = d.createElement(s); js.id = id;  js.src = source;  father .parentNode.insertBefore(js, father );}
    optingun_load(document, 'script', 'jquery-lib','https://optingun.com/sdkv3.js');
    <div  optin_id="1319" og-api-key="461e8d0163dd38e28202e055b89dd68b" ></div>

    I have put it in the Custom JS area, in theme options but it doesnt work. Is it right?

  •  567
    Stormit replied

    Hi David,

    Do you have the guide about adding your code? I see your code has the javascript code and html. So you can not add all to the Custom Javascript Code field.

    Best regards,

  • David Ferrer replied

    Hi,

    What Guide do you mean?. Don´t worry, I´m going to implement it in other way?

    Thanks,

    David

  •  567
    Stormit replied

    OK David!

    Have a nice day!