Thursday, May 24, 2012

Share (Facebook, Twitter, Google+) Buttons using HTML only


Ohhh wow. Such a hassle without the freedom of using widgets in wordpress.com. I don't understand why wordpress restrict so many features even minor features like Javascript unless you host it yourself. :( :mad: Blogger on the other hand is much better. You have more control. But the downside of Blogger is that they do not have a range of free satisfying professional themes available. You have to create them instead.

I wanted to add Share (Facebook, Twitter, Google+) buttons but wordpress.com does not allow Javascripts! Hence, I can't just copy and paste the Share button codes from the official Facebook, Twitter or Google+ pages. But it's ok, I figured out the HTML way. Here are the codes!

<!-- Facebook share button Start -->
<a href='https://www.facebook.com/sharer.php?u=http://hafilahmohd.wordpress.com/&amp;t=WHAT EVOLVES AROUND
ME' name='fb_share' target="_blank"><img src="http://hafilahmohd.files.wordpress.com/2012/05/fbsharebtn.png" alt="Share on Facebook!"></a>
<!-- Facebook share button End -->
<!-- Twitter share button Start -->
<a href="http://twitter.com/intent/tweet?source=sharethiscom&amp;text=WHAT EVOLVES AROUND
ME:&amp;url=http://hafilahmohd.wordpress.com/" target="_blank"><img src="http://hafilahmohd.files.wordpress.com/2012/05/twittersharebtn1.png" alt="Share on Twitter!"></a>
<!-- Twitter share button End -->
<!-- Google+ share button Start -->
<a href="https://plusone.google.com/_/+1/confirm?hl=en&amp;url=http://hafilahmohd.wordpress.com/" target="_blank"><img src="http://hafilahmohd.files.wordpress.com/2012/05/googleplusbtn.png" alt="Share on Google+!"></a>
<!-- Google+ share button End -->

You can use them in e-mails too.
I hope this post is helpful! :D
Unknown Author

3 comments:

free twitter followers said...

Whats up very nice blog!! Guy .. Excellent .. Wonderful .. I will bookmark your site and take the feeds additionally?I'm glad to seek out so many helpful information right here within the put up, we'd like work out more techniques on this regard, thank you for sharing. . . . . .

Hafilah Mohamed said...

Hi. Thank you for visiting my wordpress! :D

click here said...

Its such as you read my thoughts! You seem to grasp so much about this, such as you wrote the e book in it or something. I think that you simply can do with some p.c. to drive the message home a little bit, however instead of that, this is fantastic blog. An excellent read. I will certainly be back.