Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #588849

    Hello guys.

    I have a problem with adding custom code to all pages on web-site. I had read carefully all topics about it.
    But the next code in function.php, not helped me.

    function add_widget_js(){
    ?>
    <link rel=”stylesheet” href=”https://cdn.callbackkiller.com/widget/cbk.css”&gt;
    <script type=”text/javascript” src=”https://cdn.callbackkiller.com/widget/cbk.js?wcb_code=21910&#8243; charset=”UTF-8″ async></script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_widget_js’);

    As temporary solution i added the script to code section on the page.

    I’m very appreciated for your help. Thank you

    #588881

    Hi prohronus!

    Please use the code as listed below:

    function add_widget_js(){
    ?>
    <link rel="stylesheet" href="https://cdn.callbackkiller.com/widget/cbk.css">
    <script type="text/javascript" src="https://cdn.callbackkiller.com/widget/cbk.js?wcb_code=21910" charset="UTF-8" async></script>
    <?php
    }
    add_action('wp_footer', 'add_widget_js');

    let me know if that works out for you.

    Cheers!
    Basilis

    • This reply was modified 8 years, 9 months ago by Basilis.
    #589373

    Hello Basilis!

    Thank you very much, it works now!
    Just a simple error in syntax :)

    #590142

    Hi,

    Great, glad we could help :-)

    Regards,
    Rikard

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