Social Media
-
Is there any way to put another social media buttons?
-
Based on your question in the review, my guess is that you are looking for a Pinterest button. I believe you could try something like this:
- Go to wp-content/plugins/photonic/include/scripts/photonic.js, line 20. You will see this:
"<a class='photonic-share-googleplus' href='https://plus.google.com/share?url={photonic_share_link}' target='_blank' title='Share on Google+'><div class='icon-googleplus'></div>" + - After this line try adding:
"<a data-pin-do='buttonPin' href='https://www.pinterest.com/pin/create/button/?url={photonic_share_link}&media={photonic_share_image}&description={photonic_share_title}' data-pin-custom='true'><img src='https://addons.opera.com/media/extensions/55/19155/1.1-rev1/icons/icon_64x64.png' width='32' height='25'></a>" +
You can replace the icon with something of your preference – I don’t have an icon available for Pinterest at the moment.
Let me know if it works, and I will bundle this in the code.
Almost there.
I put the icon and I trie this code but it doesn’t recognize the image that we want to share, it just send me to the pintrest page."
</div>" +
"</div>";
Thats is my page:
https://estudiolampada.com.br/blog/I don’t know how to put a better icon there. I made this one:
https://estudiolampada.com.br/wp-content/uploads/2017/12/pintrest-icon.pngI found this information that I think is usefull but it’s too much to my limited knowledge:
https://stackoverflow.com/questions/10690019/link-to-pin-it-on-pinterest-without-generating-a-buttonI took a look at what you have on your page, and what you have put in is different from what I have posted above.
Note that the content of
hrefis very important. For Pinterest you will need to havehref='https://www.pinterest.com/pin/create/button/?url={photonic_share_link}&media={photonic_share_image}&description={photonic_share_title}', but you accidentally put in the link structure from Twitter,href='http://pinterest.com/pin/create/button/?url={photonic_share_link}&text={photonic_share_title}'. Based on documentation it seems like Pinterest needsurl,mediaanddescription, and what you have areurlandtext.-
This reply was modified 8 years, 4 months ago by
Sayontan Sinha.
It’s working perfectly right now. So I was very excited about the possibilities. I’m going to try instagram now. I hope that you deploy it in the next version so I’ll don’t loose this on updates. Thank you VERY much for the quickly reply.
Hey Everyone, this guy is the best π
Hi,
A quick update – I added support for Pinterest in the latest release (1.65) - Go to wp-content/plugins/photonic/include/scripts/photonic.js, line 20. You will see this:
The topic ‘Social Media’ is closed to new replies.