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”>
<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’);
As temporary solution i added the script to code section on the page.
I’m very appreciated for your help. Thank you
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
Hello Basilis!
Thank you very much, it works now!
Just a simple error in syntax :)