Facebook and Twitter Widgets don’t work
-
Hi there. I’m having a really hard time with my text widget. Everytime I post the code from my facebook page or my twitter to a text widget, it shows up on my blog as numbers and letters. What do I need to do?
The blog I need help with is: (visible only to logged in users)
-
Generally when wordpress strips out code, it is because either there is a mistake in it, or the code is not allowed at wordpress.COM due to security concerns (javascript, iframes, flash, and some others): http://en.support.wordpress.com/code/ . Most widget code from outside sources is either javascript or flash.
You can paste the code here between backticks (key to the left of the #1 on the top row) and we can have a look.
-
Hi. I’m not really sure what you’re telling me, but here’s my facebook page code that I got off of facebook:
FB.init(“76da82c105270a766e8af9fca8fc9120″);<div style=”font-size:8px;padding-left:10px;”>Odd Astrology on Facebook </div>
What extra html do I need to add to make this work? Any information would be most appreciated.
Kind Regards,
-
Actually my Twitter widget now says “Error: Twitter did not respond. Please wait a few minutes and refresh this page.”
-
That code will not work here. You need to make a simple text widget with a link to your Facebook page and either text (like Friend me on Facebook! or an image from Facebook, maybe your avatar. Whatever you like.
-
What website are people using to make their own wordpress widgets? I want to make a Facebook Page wordpress widget, I don’t have much html knowledge.
-
Just compose it as a Draft post, adding in images, links, etc, and then click to the HTML tab, copy all the code, and paste that into your text widget.
-
Hi Raincoaster. I tried what you suggested and I still got the same thing as before, all numbers and letters. Here is my code after I followed your suggestion:
FB.init(“76da82c105270a766e8af9fca8fc9120”);
<div style=”font-size: 8px; padding-left: 10px;”>http://www.facebook.com/pages/Odd-Astrology/141973751530″>Odd Astrology on Facebook</div>I can’t understand why wordpress makes it so difficult to put in widgets.
-
Assuming you just want to have a button on the sidebar to drive people to visit your FB page then you want the following in your Text widget … I’ve left the path to my Facebook button there. You may want to change that to something you fancy.
‘<img src=”http://www.shimworld.com/blog/buttons/facebook-button.jpg” border=”0″>‘
-
Not sure what happened above. I put the codes between backtick and it messed up.
‘<img src=”http://www.shimworld.com/blog/buttons/facebook-button.jpg” border=”0″>‘
An example of the button i use can be seen on my blog http://shimworld.wordpress.com
Hope it helps!
-
Oddastrology, you are putting in code that will never work. You put an image in, uploaded from your computer or hotlinked from a URL. Then you click on it, and add a link to it, the link to your Facebook page.
Anything with “init” in the code is a total non-starter here and will never work.
- The topic ‘Facebook and Twitter Widgets don’t work’ is closed to new replies.