Adding a Pinterest Button to WordPress – with your Featured Image

January 8th, 2012 § 4 comments § permalink

Pinterest gives you the basic code to add their nice “Pin It” button to your website.. but to add to WordPress, with all of its dynamic-ness, takes a little extra work. I have a photo-a-day site that I wanted to make “Pin-able”, so here’s how that works, with the WP stuff bolded.

<div id=”pinterest-button-for-wordpress”>
<a href=”http://pinterest.com/pin/create/button/?url=<?php the_permalink() ?>&media=<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘single-post-thumbnail’ ); ?>
<?php echo $image[0]; ?>
<?php endif; ?>&description=<?php the_title(); ?>” class=”pin-it-button” count-layout=”horizontal”>Pin It</a>
<script type=”text/javascript” src=”http://assets.pinterest.com/js/pinit.js”></script>
</div>

a fantastic little WordPress theme – mmminimal

July 21st, 2011 § 0 comments § permalink

Looking to show off just a few photos? Like your own photo-a-day site? Check out this free minimalist photography theme – very sharp. Now live on my new project at www.yettas.com.

mmminimal Free WordPress Themes | mmminimal.

 

Facebook Comments, WordPress and Lightbox

April 4th, 2011 § 0 comments § permalink

Recently Facebook revamped a commenting system, which can replace that of your current blog’s. Adding Facebook Comments to your site is not an overly difficult process – and certainly adds some value. For instance – spammers will have trouble, considering you have to be a real person to be on Facebook (in theory). It also adds huge social value – as comments can appear in FB as well as on your site. It also adds “like” functionality inherently – pretty nice.

What is NOT so nice – the scripts that are pulled in to activate the functionality will break your Lightbox plugins. These are the ones that show off images in a pleasant overlay when you click on them – for standalone posts as well as other plugins such as NextGen gallery.

Fortunately, there’s a solution. An evolution of Lightbox – called Colorbox – seems unaffected by the Facebook factor.  What. A. Relief.

Some links:

Random header image for Twenty Ten :: Noro

March 22nd, 2011 § 0 comments § permalink

A quick and easy update if you’d like to have a random image appear per page in your TwentyTen theme. First off, you’ll first need a child theme – and have the ability to crop images to the proper proportions. You can use services like Picnik for that. Read on at:

Random header image for Twenty Ten :: Noro

You can see my implementation of it on DFF.

WordPress Theme goodness – ThemeForest.net

November 14th, 2009 § 0 comments § permalink

The majority of sites I build are based on WordPress – not only because it is free, amazingly extensible (is that a real term?) and just plain cool.. but I also really like it because ANYONE can use it. While there are tons of great themes out there to be had for free, it is often hard to find a really nice one to run a business site on. I have an answer for that issue though – ThemeForest (also on twitter).

ThemeForest has a fantastic selection of “premium” themes – most of which can be had for under $30. There are many other “premium theme” sites out there, but it is hard to trust many of those sites. ThemeForest is a solid choice – and clearly run by some smart people (Envato).

A sister site of ThemeForest is GraphicRiver – piles of fantastic artwork for dirt cheap. Good stuff!