How can I prevent the pinterest button from sharing in the products change the image?



go to /themes/classic/modules/ps_sharebuttons/views/templates/hook/ps_sharebuttons.tpl

 

OR

 

/modules/ps_sharebuttons/views/templates/hook/ps_sharebuttons.tpl

 

replace code:

 

<li class="{$social_share_link.class} icon-gray"><a href="{$social_share_link.url}" class="text-hide" title="{$social_share_link.label}" target="_blank">{$social_share_link.label}</a></li>  

 

on the:

 

{if $social_share_link.class == "pinterest"} <li class="{$social_share_link.class} icon-gray"><a href="javascript:void(0)" onclick="window.location.href = '{$social_share_link.url|escape:'htmlall':'UTF-8'}'" class="text-hide" title="{$social_share_link.label}">{$social_share_link.label}</a></li> {else} <li class="{$social_share_link.class} icon-gray"><a href="{$social_share_link.url}" class="text-hide" title="{$social_share_link.label}" target="_blank">{$social_share_link.label}</a></li> {/if}  



You will also find other SPM Prestashop Modules