Custom Pinterest share button – with content

I needed a custom Pinterest share button, I don’t like installing to many Plugins into WordPress, so when I can custom code something, I do. So I Google’d and found this: http://ajtroxell.com/pinterest-and-google-plus-share-links-without-javascript/ But I made a slight modification. Just pulled in the featured thumbnail a different way. in the top of the content.php file: $url = wp_get_attachment_url([…]

Add Class to Landscape or portrait image in gallery with jQuery

So I needed to style the landscape and portrait images different in a post in WordPress, so I needed to add the classes to each image using jQuery. html:<div class=”imageGallery“>    <img 1>    <img 2>    <img 3></div> jQuery:<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js” type=”text/javascript”></script><script type=”text/javascript”> $(document).ready(function() { $(“.imageGallery img“).each(function(){ var img = $(this); if (img.height() < img.width()){[…]