Support Center
Visit Demo
License manager
Buy @ envato
toggle menu
Categories
Discussions
Activity
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Sign In
·
Register
×
Home
›
Other
Paste code <script>
CesarMendocilla
March 2015
in
Other
I need to insert a facebook code in the header, which could paste this script?
Comments
Albert
March 2015
Hi,
Do you mean to get facebook icon which is available on our demo in right top corner or you mean something else?
CesarMendocilla
March 2015
I want to insert this code between <head> and </ head> :
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('
script');
fbds.async = true;
fbds.src = '//
connect.facebook.net/en_US/
fbds.js
';
var s = document.getElementsByTagName(
'script')[0];
s.parentNode.insertBefore(
fbds, s);
_fbq.loaded = true;
}
_fbq.push(['addPixelId', '1429510000675517']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="
https://www.facebook.com/
tr?id=1429510000675517&ev=
PixelInitialized
" /></noscript>
Albert
March 2015
So if you want to paste this code, you can try to do it in "Analytics code" field in Theme options > Getting started > Advanced section. But if this won't work from this place, then you must modify theme files unfortunately.
CesarMendocilla
March 2015
fine, thank you very much
Albert
March 2015
You're welcome
Sign In
or
Register
to comment.
Comments
Do you mean to get facebook icon which is available on our demo in right top corner or you mean something else?