I installed the jquery pin it button plugin for my Wordpress site and it was working until I put the following code into the header:

<script type="text/javascript">
$(window).scroll(function() {

if ($(window).scrollTop() === 0) {

Since then the pin it button images have been moved out of position so when you hover over an image the pin it button sits beneath the image rather than in the bottom right hand corner: