|
08.10.09 Adding Digg And Facebook Support To Your Blog Site By Michael GrayIf you're involved with social media sites like Digg, Facebbok or Reddit, you've probably seen stories with images next to them. If you've submitted stories there, you may have seen it present you with a few image choices, sometimes the one you want is there sometimes it isn't. Then there's the the case where the social media site chooses the image on it's own, and it's a crappy image or worse yet an ad … dooming your story to failure. Did you know there's a way to fix that problem? Many social media sites like Digg and Facebook work with what's called the facebook share standard, so you can tell these services which image you'd prefer they use. This tutorial deals specifically with Thesis, but again can be used on any wordpress blog, but remeber things are just easier with thesis We need to open up custom_functions.php and add the following code: ![]()
![]() Now we have to tell thesis where and when to execute the function, we do that by adding this to custom_functions.php ![]() You may not have seen wp_head before, it's a built in wordpress shortcode that tells it to execute this code in the head area of the page. That's it easy as pie. You could improve the code, by maybe adding an if/then to chose the thumbnail over the big picture, or maybe see if there is a special field and then fail over to thumbnail or main image. I think this funtionality should be added to the next version of thesis, if you agree let them know (wink wink nudge nudge). if you enjoyed this post check out some of my other thesis tutorials.Comments
|
|||||||||
|
|
|
-- DevWebProCA is an iEntry, Inc. publication -- iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 2009 iEntry, Inc. All Rights Reserved Privacy Policy Legal |
| archives | advertising info | news headlines | free newsletters | comments/feedback | submit article |