Jump to content

[SOLVED] Pinterest Pin It button on products images hover


nicograph77

Recommended Posts

Hi,
I'm trying to add a Pinterest "Pin it" button when user hover images on the website, by adding the code provided on the Pinterest website here https://developers.pinterest.com/tools/widget-builder/?type=pinit&buttonType=imageHover&language=default&tall=false

Basically it's just this  simple line of code 

<script async defer data-pin-hover="true" src="//assets.pinterest.com/js/pinit.js"></script>


I've inserted the required script in the footer.tpl file just above the closing </body>  tag  but apparently there is some conflict with the theme I'm using or with the Prestashop code.

I spotted that, once published, the script moves from the place it was inserted and and appears like that in the page source :

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

I made a test in a static html file and the Pinterset code is working.

Any idea of what's happening ?

Thank you in advance.


Nicolas.

Edited by nicograph77
Marked as solved (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...