cool things » Archive

Pinterest has a ‘Pin It’ button available for websites in the ‘Goodies‘ section now. It’s much like the Twitter and Facebook buttons you see EVERYwhere. I added a bit so you can use it in your WordPress theme.

With the following code this button can go on your index, single or archive pages – anywhere the WordPress loop appears. It will automatically pull the first image from the post to be pinned and link to the post’s permalink. The title of the post along with the website url will appear in the description field but can be edited before it’s posted.

Place this code in your template where you want the ‘Pin It’ button to appear – it should be inside The Loop.

<a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink() ?>&media=<?php echo pinterest_image() ?>&description=<?php the_title(); ?> on <?php bloginfo('url'); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a>

Place this script in your footer.php file, just before the closing tag.

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

Put the following code in your functions.php file.

function pinterest_image() {
  global $post, $posts;
  $first_img = '';
  ob_start();
  ob_end_clean();
  $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  $first_img = $matches [1] [0];

  if(empty($first_img)){ //Defines a default image
    $first_img = "/images/default.jpg";
  }
  return $first_img;
}

You can change /images/default.jpg to whatever you’d like. This image will be pinned if there’s not an image in the post.

Be really careful in your functions.php file, it’s a little touchier than what you might be used to. The first thing I ever broke in one was putting a space after the closing ?> – it’ll break your whole site! Always back up your files before you start changing things.

Easy as that, happy pinning!

P.S. Before you ask a question about your WordPress theme please do a quick google or codex search – If you still can’t figure it out ask away and I’ll try my best to help when I can!

.

UPDATE!

Due to Pinterest’s huge popularity now, there are tons of plugins available that will do this for you. I just did a quick search and this one looks good. WP Beginner also shows a different method that doesn’t involve the function file.

Hello! I’m on a short hiatus from making binders and templates these days to take care of baby but I’m always on the hunt for cool ideas and inspiration. My fave site to post links is Pinterest – follow my DIY Planner and Printable boards if you’re on there too!

Know of an awesome handmade planner that I’m sorely missing out on? Please share in the comments!

I love Julia Pott. I know I’ve said it before and I’m sure I’ll say it again. She just posted her first year project from the Royal College of Art — first year! It’s very odd and very amazing.

rebecca

Meet Rebecca, handmade by Ann Wood. She was my Christmas present year before last from Sam!

Visit Ann’s website to see more birds, ships and owls – all gorgeous! If you want to purchase something though you should subscribe to her RSS, email list and twitter. And be prepared to drop everything and buy RIGHT AWAY when something new goes up. It’s gone fast, for good reason.

Two months ago she did a Vintage fabric give-away on her blog, out of over 100 people to enter I was one of 5 winners! I was shocked to find this huge box of fabric outside my door –

fabric from Ann

So nice. Still trying to decide what to make, I’ll keep ya posted. xo

Ann Wood’s website :: blog :: @annwoodhandmade

I’ve been following paperboatcaptain (aka Maria, an apprentice boatbuilder and artist from Germany) for a while on flickr. Her drawings/collages are whimsical w/bright colors and gorgeous textures.

paperboatcaptain

AND THEN!
She contacted me a few days ago to share photos of her new little handmade organizer using my DIY Planner Templates, I almost fell out of my chair it’s SO cool!

paperboatcaptain paperboatcaptain paperboatcaptain

Check out more photos of it and her lovely artwork on flickr.
Thanks so much for sharing Maria!

The internet’s a crazy place… you send these little pieces of yourself into space and every once in a while they find a little home and grow into something unexpected and beautiful. xo

I saw a post on Julia Pott on Doodlers Anonymous the other day and FELL IN LOVE! She was having a sale (should’ve posted this before it was over, it’s still super affordable tho!) – So, I bought myself two and one for a gift for my sister for her birthday (surprise!). The two I ordered are below, check her shop for LOADS more!

juliapotts

Aren’t they wonderful?!

AshVirginTopoBrown_Front_300

I was apparently on a crazy shopping spree ’cause I bought these shoes after seeing them on a Design Sponge post by guest author, Rei Jin. LOVE.

In other news, I’ve decided to TRY and update my blog more often and lighter. Changed the layout of this area a little so it’s not connected with the featured posts on the main page. Before I felt like every post had to be oh-so-important, now I’m just going to write whatever I feel like and not worry about it!

DIY Planning isn’t just for notebooks!

Free People used yarn, cut-out letters, old wallpaper, blank sheet music, and other found papers and stapled it to the wall to create this monster wall calendar!

Chalkboards calendars are so wonderful to look at AND functional. Check out the tutorials linked below and this video tutorial by Martha Stewart on making your own wall calendar. With the right undercoats you can put chalkboard paint on just about anything! (Chalkboard Refrigerator!)


(*** 1. Erinowe’s Chalkboard Window + Tutorial *** 2. Geninne’s Studio Update *** 3. Jen Thompson’s Screen Door + Tutorial ***)

When we own a house I’m going to paint my studio just like Roland Emmerich’s Chalkboard Office. On the walls & ceiling, brilliant! Pair that with my dream floors (white-washed oak) & I’d never leave.

Page 1 of 21 2