Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Facebook wants me to insert code WHERE?


  #1  
Old May 3, 2014, 12:21 PM
johnq
 
13 posts · Jan 2011
Facebook wants me to insert code WHERE?

I am trying to create a Facebook Follow Button.

Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

Here is the code it wants me to put there.

<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 = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=306802696062028&version=v2.0" ;
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


PROBLEM: I cant find where the <body> to be able to insert the code.

Your help is greatly appreciated.
  #2  
Old May 3, 2014, 12:25 PM
johnq
 
13 posts · Jan 2011
I am placing the button on the RHS widget.

Which would be best? HTML5, XFBML, IFRAME or URL?
  #3  
Old May 3, 2014, 02:26 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Look at the 'Add HTML/CSS Inserts' option
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; May 3, 2014 at 03:15 PM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
insert code newtickers masmaz Montezuma Theme 18 May 19, 2013 06:20 AM
[SOLVED] How to insert code above the loop? Harald New Versions, & Updating 6 Jun 3, 2011 09:36 AM
Where to insert code for jquery plugins ? twola Header configuration & styling 3 Jan 23, 2010 11:18 PM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM


All times are GMT -6. The time now is 12:04 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.