Jump to content
Sign in to follow this  
joelsnortongmailcom

Adding TweetMeMe and Facebook Like buttons

Recommended Posts

joelsnortongmailcom

Hi, I'm running iBlogPro4 and I'm trying to add the TweetMeMe and Facebook Like buttons. At this stage I want to add them just to the top of the blog posts (not Home Page or other pages). I've added separate plugins for both but they're not appearing on the posts. I had a go at adding the following code to a few .php files but couldn't get it to work, so I deleted it. <iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&layout=button_count&show_faces=false&width=80&action=like&font=lucida+grande&colorscheme=light??? allowtransparency=???true??? style=???border: medium none; overflow: hidden; width: 80px; height: 21px;??? frameborder=???0??? scrolling=???no???></iframe> For reference, my site url is... http://boosthq.com.au/blog

Share this post


Link to post
Share on other sites
cmunns

It looks like it's working to me, but only on the single posts pages. You may also need to style them to place them in a neater fashion. To place them in the main blog page you have to put the code in the _posts.php file after this code ` <?php if(!is_page()):?>

`

Share this post


Link to post
Share on other sites
joelsnortongmailcom

Hi Adam I actually didn't want them on the single posts pages - I only want them on the Blog. I've added the code in the _posts.php file as suggested but it's only showing FB Like (not retweet), and the spacing is all wrong. So... 1. How do I delete off the normal site pages? 2. How can I fix the blog page so that both FB and Retweet appear, and the alignment is OK? I don't really have much experience with code, so may need a little more direction. Thanks in advance. Cheers, Joel

Share this post


Link to post
Share on other sites
joelsnortongmailcom

PS. Ideally I'd like the buttons to appear under the Blog Title but before the body copy. Is that possible?

Share this post


Link to post
Share on other sites
joelsnortongmailcom

PPS. And for some strange reason I seem to have lost some of my blog posts... I think every 2nd one has gone MIA, even though I can still see them in the backend... would this be as a result of the code I've added??

Share this post


Link to post
Share on other sites
bryan-hadaway

It might be best to undo everything you've done so far. Then based on your newest description of what you'd like to do I have a plugin to recommend that would work perfectly: Custom Headers and Footers - Search for it from: Plugins > Add New Then post your widget codes into: Header from the Custom Headers and Footers settings. After that describe to me how you'd like them styled and what kind of pages you don't want them to appear on and I can provide the custom CSS. Thanks, Bryan

Share this post


Link to post
Share on other sites
joelsnortongmailcom

Hi Bryan I've deleted the FB code from the _posts.php file, and the blog is showing the full number of posts again, thank you. I've installed Customer Headers and Footers as suggested. I tried adding the FB code to 'Header' however only the FB Like button appeared, with no blog posts at all... so I deleted it again. Reg. style - I'd like the FB Like, Google Buzz and FB Like button to appear under each Blog Post Title but before the image/body copy of the post. Refer to Duct Tape Marketing blog for reference... http://www.ducttapemarketing.com/blog/ They only need to appear on the individual Blog posts - not on any of the other page types. Thanks again. Cheers, Joel

Share this post


Link to post
Share on other sites
cmunns

Are you sure your code is correct? It shouldn't be deleting or modifying any posts. The markup is likely incomplete.

Share this post


Link to post
Share on other sites
robertd62

Try Pretty link pro it does exactly what you want and more. I us it on my site..

Share this post


Link to post
Share on other sites
nfardo

Custom Headers and Footers - Search for it from: Plugins > Add New Then post your widget codes into: Header from the Custom Headers and Footers settings. After that describe to me how you'd like them styled and what kind of pages you don't want them to appear on and I can provide the custom CSS. ------------ I don't see where I can edit my settings for this? Thanks, NPF

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×