php help

I am trying to add a facebook “like” button to a site. The footer is an include and is dropped into the main template. I have placed the code generated from facebook the footer page and also the javascript that goes along with it, but it will not show up on the site. Should I be putting the javascript in the main template?

Below is the footer:

        <div id="social"><a rel="nofollow"  href="" target="_blank"><img src="images/FaceBook_48x48BW.png" alt="ERSI Facebook " width="48" height="48" border="0" /></a><a rel="nofollow"  href="" target="_blank"><img src="images/Twitter_32x32BW.png" alt="ERSI Twitter Follow Us!" width="48" height="48" border="0" /></a>
  <div class="fb-like" data-href="" data-width="100" data-height="48" data-colorscheme="light" data-layout="standard" data-action="like" data-show-faces="true" data-send="false"></div>
  <div id="fb-root"></div>

You suppose to put



Right after the opening body tag…

But I did my facebook button differently on my site…

Using This instead of that javascript - Browse the source at


Sponsor our Newsletter | Privacy Policy | Terms of Service