Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

<body> tag for Facebook Developer code

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I am using the facebook developer to create page for all facebook page tweets. The instructions says:
Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

CODE:
(<div id="fb-root"></div>
<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 = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
}(document, 'script', 'facebook-jssdk'));</script>)

I cannot find this. Putting code on template index does not work. I read from forum the some template providers change the structure of the main file:

joomla.stackexchange.com/questions/9180/how-to-add-javascript-code-between-body-tags-using-an-extension

Please help
  • Omar's Avatar
  • Omar
  • 12 Month Developer
  • 19 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Have you tried in the settings tab and the custom scripts section?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
And the "After opening head tag" seciton

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Is all sorted. I just had to create customHTML.

Thanks
  • Omar's Avatar
  • Omar
  • 12 Month Developer
  • 19 posts
  • Karma: 0
The administrator has disabled public write access.
Yes, That's exactly what I did.

Cheers Paul :)
  • Omar's Avatar
  • Omar
  • 12 Month Developer
  • 19 posts
  • Karma: 0
The administrator has disabled public write access.
You used the template settings? or created a customHTML module?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers