ThemeForest

Infocus, Facebbok & Javascript

2 posts
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
BlackArtist says

Hi Guys,

I purchased Infocus and have it running really nicely, but I want to add a facebook like button on my pages, this is a feature facebook offer so its a 2 stage process first I must add this:

<script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = ”//connect.facebook.net/en_US/all.js#xfbml=1”; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));</script>

which facebook want just below the body tag, although I have added the above to the custom javascript box within the admin panel.

then add this:

class="fb-like" data-href="http://www.xxxxxxx.co.uk" data-send="false" data-width="450" data-show-faces="true" />[/code]

the problem is nothing is showing except a few symbols at the bottom of the site, anyone got any ideas on how to solve this?

Cheers

the code tag aint working here either, and it appears I can’t spell facebook either :)

3 months ago
453 posts
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Romania
  • Referred between 10 and 49 users
dnp_theme says

You should contact the author as these forums here are only for authors to discuss about items, rejections, etc.

3 months ago
by
by
by
by
by