Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #228747

    Hey guys,

    I have a Child Enfold Theme installed. I’d like to add the Pinterest On Hover Pin In buttons as described here.
    https://developers.pinterest.com/on_hover_pin_it_buttons/

    Where would I put this in the Child theme?

    Thank you, Jasmer

    #228834

    Hi Jasmer!

    Put this in your Child functions.php:

    function pin_script(){
    	echo '<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script>';
    }
    add_action('wp_footer', 'pin_script');
    

    Best regards,
    Josue

    #230040

    Thanks Josue,

    The code works but the concept by Pinterest just doesn’t work very well. The pinit button is showing up in the wrong places and don’t work when it does show up. But thank you for pointing me in the right direction. I just don’t think Pinterest has figured this out. There is a way to go through and tag images you don’t want this to show up on, but that still wouldn’t solve all the problems. I’ll come back to it when I begin my photography site.

    Best, Jas

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Pinterest’ is closed to new replies.