Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    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:

    1. 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>" +
    2. 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.

    Thread Starter LexKeher

    (@lexkeher)

    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.png

    I 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-button

    Plugin Author Sayontan Sinha

    (@sayontan)

    I 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 href is very important. For Pinterest you will need to have href='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='https://pinterest.com/pin/create/button/?url={photonic_share_link}&text={photonic_share_title}'. Based on documentation it seems like Pinterest needs url, media and description, and what you have are url and text.

    Thread Starter LexKeher

    (@lexkeher)

    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 ??

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hi,
    A quick update – I added support for Pinterest in the latest release (1.65)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Social Media’ is closed to new replies.