Remove pinterest button from all images except the main article

483 views Asked by At

I want to add a pinterest button to joomla articles, and I achieved it by adding the code:

<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script>

But this code adds the button to all images in the page. How can I add it only to the main article image?

Thank You

2

There are 2 answers

0
GDP On

I'd suggest writing a small/simple Content Plugin (see the developer tutorial link). The Joomla SE site has a question/answer that discusses customizing images for articles - it may be a good starting point for you.

1
Paul On

You can put a pin it button next to an image with this:

http://networkconnected.co.uk/all-extensions/pin-it-any-image