Reply To: how to put "my code" into footer.php without being deleted after updates?

Home Forums Support how to put "my code" into footer.php without being deleted after updates? Reply To: how to put "my code" into footer.php without being deleted after updates?

Home Forums Support how to put "my code" into footer.php without being deleted after updates? Reply To: how to put "my code" into footer.php without being deleted after updates?

#179631
Dmitry Bychenko

Thanks, Tom,

yes, i have GP Hooks (Premium), i tried to put stuff there, but it didnt work. and i checked Execute php.

the script is:
<script type=”text/javascript” src=”http://tradebonds.ru/simplebox_util.js”></script&gt;
<script type=”text/javascript”>
(function(){
var boxes=[],els,i,l;
if(document.querySelectorAll){
els=document.querySelectorAll(‘a[rel=simplebox]’);
Box.getStyles(‘simplebox_css’,’http://tradebonds.ru/simplebox.css&#8217;);
Box.getScripts(‘simplebox_js’,’http://tradebonds.ru/simplebox.js&#8217;,function(){
simplebox.init();
for(i=0,l=els.length;i<l;++i)
simplebox.start(els[i]);
simplebox.start(‘a[rel=simplebox_group]’);
});
}
})();</script>

Script should be put before </body> in footer.php

what is the correct way to put it in wp_footer?