Add new facebook share button w/out plugins

by kage65
6 replies
Anyone know how to add this code to a wordpress site?
The common plugins add facebook like buttons, but I don't want the like buttons on my site, I need the share button on. So it needs to be added manually.
I pasted the HTML 5 code from here
https://developers.facebook.com/docs.../share-button/
in the text section of my wp site, but nothing is appearing.

The code I added looks like this
<div class="fb-share-button" data-href="http://developers.facebook.com/docs/plugins/" data-width="20" data-type="button_count"></div>

thanks much
#add #button #facebook #plugins #share #w or out
  • Profile picture of the author awledd
    I clicked on the FB link and it displayed this "Sorry, the link you followed may be broken, or the page may have been removed."
    Anyways, I don't think the code is right b/c there is no jpg or png file URL in it. But why bother when you can do it with plugins. like WordPress › Floating Social Media Icon « WordPress Plugins
    Signature
    {{ DiscussionBoard.errors[8779892].message }}
    • Profile picture of the author kage65
      Because you can never have it just like you want it.
      With the one you just mentioned for example, you have to have a bunch of useless icons like youtube and rss.
      {{ DiscussionBoard.errors[8779979].message }}
  • Profile picture of the author Worrier9001
    Have you tried the "Widgets"? They are for the sidebar. There is one called "Text" which allows you to put custom HTML and Javascript. You could put that HTML / Javascript for the FB share in that widget and put it on your sidebar?
    {{ DiscussionBoard.errors[8780034].message }}
    • Profile picture of the author kage65
      Originally Posted by Worrier9001 View Post

      Have you tried the "Widgets"? They are for the sidebar. There is one called "Text" which allows you to put custom HTML and Javascript. You could put that HTML / Javascript for the FB share in that widget and put it on your sidebar?
      Hi, I know about widgets, but the code from facebook doesn't work. Nothing shows. Tks
      {{ DiscussionBoard.errors[8780168].message }}
  • Profile picture of the author brutecky
    You still have to load the Facebook SDK. What you pasted is only some of the code.
    {{ DiscussionBoard.errors[8780592].message }}
  • Profile picture of the author PongSet
    Try Social Sharing Toolkit, it has Facebook Share button
    {{ DiscussionBoard.errors[8780873].message }}

Trending Topics