I was working on adding a tracking script onto our website and it worked, but it messed up some of the scripts that were already on the site.
This is what I was trying to add:
function my_custom_js() {
echo '<script type="text/JavaScript" src="https://secure.ifbyphone.com/js/ibp_clickto_referral.js"></script>
and it also added 2 hooks:
// Add hook for admin add_action('admin_head', 'my_custom_js');
// Add hook for front-end add_action('wp_head', 'my_custom_js');
now the "latest posts widget" is not working - gives the error
"Warning: DOMDocument::load(): Extra content at the end of the document in http://www.givnerkaye.com/feed/, line: 2 in /home/givnerk/public_html/wp-content/plugins/php-code-widget/execphp.php(27) : eval()'d code on line 4"
And when I try to login to the admin I see:
"Warning: Cannot modify header information - headers already sent by (output started at /home/givnerk/public_html/wp-content/themes/thesis_18/thesis_18/functions.php:1) in /home/givnerk/public_html/wp-includes/pluggable.php on line 1173"
you can view the live page page at www.givnerkaye.com
How can these issues be resolved?