Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 19th Apr 2012, 10:43 AM   #1
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

I want to put Social Media Buttons Below Each post like this site I have in blogger - Diary of the Narcissist

I want to put something of the same thing in wordpress.org site but I am still trying to figure out PHP.

I have found a code that will give my website the desired effect.

The css to be added to the styles.css is this

.social-single {
margin: 17px 0 0 0;
}
#twitterbutton, #likebutton, #stumblebutton, #sharebutton, #linkedinshare {
float: left;
display: block;
}
#likebutton {
margin-top:0px;
margin-left:-3px;
}
#sharebutton {
margin-left:0px;
margin-top:0px;
margin-right: 5px;
}
#stumblebutton {
margin-left: 20px;
margin-top: 1px;
}
#linkedinshare {
margin-left: 20px;
margin-top: 1px;
}
#plusonebutton {
margin-left: 20px;
margin-top: 1px;
}
The Code to add to the single.php is this

<div class="social-single">
<div id="twitterbutton"><script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script><div> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-counturl="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-via="username" data-related="username">Tweet</a></div></div>
<div id="likebutton"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo rawurlencode(get_permalink()); ?>&layout=button_count&show_faces=false&width=100& action=like&font=verdana
&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
<div id="sharebutton" style="padding-top:1px;"><a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
<div id="stumblebutton"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1"></script></div>
<div id="linkedinshare"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></div>
<div id="plusonebutton"><g:plusone size="medium"></g:plusone></div>
</div><br />
But I dont get the same effect. The buttons appear in a vertical line instead of a horizontal line.

ie assuming each of the smilieys is a social media button it appears as



instead of

What am i possibly doing wrong. Please help me.
oopeace121 is offline  
Unread 19th Apr 2012, 11:09 AM   #2
Verified Warrior ✔
War Room Member
 
imsirigiri's Avatar
 
Join Date: 2011
Location: Firefox Browser
Posts: 247
Thanks: 40
Thanked 56 Times in 51 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Why dont you use plugins on WordPress to achieve the effect?

For eg: You can use this plugin in WordPress WordPress › Socializer! « WordPress Plugins

Search for some more plugins which help you out in placing social networking buttons to share your posts. That would be much easier than hard coding.

Reinventing the wheel, not good.

Need a Technical Support VA on an Hourly Basis? || Need AdSense Microniche Sites Research and Development? PM me.
imsirigiri is offline  
The Following User Says Thank You to imsirigiri For This Useful Post:
Unread 19th Apr 2012, 11:31 AM   #3
Warrior Member
 
Join Date: 2010
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Thanks from me too!
louis martin is offline  
Unread 19th Apr 2012, 12:33 PM   #4
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Well I did some endless searching. Couldnt quite find what I wanted
oopeace121 is offline  
Unread 19th Apr 2012, 01:24 PM   #5
msu
HyperActive Warrior
 
msu's Avatar
 
Join Date: 2011
Location: Live from the hammock
Posts: 364
Thanks: 9
Thanked 37 Times in 34 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Another good plugin is AddThis.com - probably about the easiest going, it also works for non WordPress sites too.

New to WordPress? Save time with my beginner's guide:
WordPress Step-by-Step
(for Kindle & Kindle Apps)

I'm a top-notch WordPress developer: hire me
msu is offline  
The Following User Says Thank You to msu For This Useful Post:
Unread 19th Apr 2012, 02:58 PM   #6
HyperActive Warrior
 
Join Date: 2012
Location: Denmark
Posts: 156
Thanks: 3
Thanked 15 Times in 15 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

I could make good use of this code. Thank you. I have tried the AddThis code. It is one of the most helpful and easy ones to use.
ProAffiliate01 is offline  
Unread 19th Apr 2012, 10:12 PM   #7
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Well I finally made it work all by my self lol It turned out to be pretty easy. I removed the style sheets and the code in the html. It worked just as I expected. I added my own codes for pin interest and addthis. Thanks everybody
oopeace121 is offline  
Unread 19th Apr 2012, 10:15 PM   #8
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Originally Posted by ProAffiliate01 View Post

I could make good use of this code. Thank you. I have tried the AddThis code. It is one of the most helpful and easy ones to use.
Please let me know where in the single.php you added the code
oopeace121 is offline  
Unread 20th Apr 2012, 06:37 AM   #9
Warrior Member
 
Join Date: 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

i want to plug button of facebook and twitter to my site.can anyone tell me how i get it

Allcityloan is offline  
Unread 20th Apr 2012, 07:57 AM   #10
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Allcityloan View Post

i want to plug button of facebook and twitter to my site.can anyone tell me how i get it
Use Addthis plugin. If you cant get it right, ping back here and I will give you a manual code you can add to your single.php
oopeace121 is offline  
Unread 9th May 2012, 08:24 AM   #11
Innovator, Engineer, MBA
 
Join Date: 2009
Location: Delhi, India
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

you can use floatingsocialmediabuttons.com
Yuvraj Pratap is offline  
Unread 10th May 2012, 09:25 AM   #12
Active Warrior
 
Join Date: 2012
Posts: 32
Thanks: 12
Thanked 1 Time in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Originally Posted by sandeep552 View Post

You can placed media button under each post by use setting where you get tool for insert social media.
I dont think I quite follow. How do you do this?
oopeace121 is offline  
Unread 10th May 2012, 01:25 PM   #13
VIP Warrior
War Room Member
 
Karen Blundell's Avatar
 
Join Date: 2008
Posts: 1,768
Thanks: 4,644
Thanked 1,335 Times in 894 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

just ignore the trolls who think they know stuff but don't really know squat...it happens quite a bit - and it's simply a tactic for running up their post counts and exposing their sig files. :rolleyes:

---------------
Karen Blundell is offline  
Unread 10th May 2012, 02:24 PM   #14
HyperActive Warrior
War Room Member
 
dbwebdesignz's Avatar
 
Join Date: 2012
Location: London
Posts: 436
Thanks: 5
Thanked 23 Times in 23 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Use a plugin if you are on the wordpress platform it will make your life so much easier

Lets Us Do Your Back linking >>> The Best SENuke X Campaign <<< Panda and Penguin friendly

Cheap Web Hosting £2.49 per month
London Website Design
dbwebdesignz is offline  
Unread 31st May 2012, 12:24 AM   #15
Not Keyser Söze
 
Torreylee's Avatar
 
Join Date: 2010
Location: On Another Level...
Posts: 238
Thanks: 81
Thanked 33 Times in 29 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Originally Posted by msu View Post

Another good plugin is AddThis.com - probably about the easiest going, it also works for non WordPress sites too.
Yup, that's what I use with 0 problems.

You Wanna Learn About The SEO Underground?

Learn more at backlinkcheckerseo.com[/B].

Learn about financing your small online business with peer-to-peer lending today.
Torreylee is offline  
Unread 31st May 2012, 03:03 AM   #16
HyperActive Warrior
 
Join Date: 2009
Posts: 224
Thanks: 1
Thanked 19 Times in 19 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

If you want put social media button after your post, you can install some plugin. One of the best plugin for social media is "sociable". Also, you can customize various size as you want.

teguhyuliantos is offline  
Unread 1st Jun 2012, 07:59 PM   #17
Premium SEO Company
War Room Member
 
System Wide Solutions's Avatar
 
Join Date: 2009
Posts: 417
Thanks: 51
Thanked 41 Times in 30 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Originally Posted by msu View Post

Another good plugin is AddThis.com - probably about the easiest going, it also works for non WordPress sites too.
Me too using Addme Its great and easy to implement with any kind platform.

System Wide Solutions is offline  
Unread 6th Jun 2012, 09:02 PM   #18
Active Warrior
 
EndTheTrendNow's Avatar
 
Join Date: 2012
Location: Austin, Texas
Posts: 83
Thanks: 16
Thanked 5 Times in 4 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

If you can read a little html, you should be able to go into the WP editor and experiment with the template file that displays posts and figure out where code can be added.

I had to do that with my latest wp template and figure out where to put a banner add. It took me a few attempts where I would place the code save the file and then look at it in the browser. Eventually I figured out where in the code to add it.

Just remember to backup the file before you start mucking around with it.
EndTheTrendNow is offline  
Unread 11th Jun 2012, 05:05 AM   #19
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 95
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

its really good to step into wordpress. if you are using wordpress and want social media icons to work beneath each post, its very easy to find out the plugins which will do the same for you. you don't need to have good knowledge of php or html.

john-7665 is offline  
Unread 11th Jun 2012, 05:33 AM   #20
Web Developer
 
Jdunhin's Avatar
 
Join Date: 2012
Location: South Africa, Pretoria
Posts: 106
Thanks: 16
Thanked 10 Times in 10 Posts
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Jetpack, share daddy is awesome. For wordpress it is a nice plugin to use!

We handle all your WordPress Content,Theme and Plugins updates!
iAdminWP
Jdunhin is offline  
Unread 15th Jun 2012, 03:39 AM   #21
Active Warrior
 
Join Date: 2012
Posts: 49
Thanks: 0
Thanked 2 Times in 1 Post
Default
Re: How to Put Social Media Buttons below Each post?
Share on: 
fb share twitter share gplus share more share

Its seems some minor css issue but I would recommend you for such things ready-made plugins are available which reduces our manual efforts with customize HTML.
You can try from addthis site.
eluminousdev is offline  
Closed Thread


Bookmarks

Tags
buttons, media, post, put, social


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:46 PM.