I’m working on social media sharing buttons. I followed tutorials from @Waldo and @sabanna great Webflowers, I still have a small problem: My Pinterest button does not work. I copied the same code and it does not work. My goal is to add social media sharing buttons to CMS posts.
Can anyone help me?
Can you please share the tutorials here so I can take a look?
The code you copied has been modified somehow by the forums.
I created a demo of the same script running with jQuery on Codepen.
Note the button ID. Also the script needs to be placed in script tags in the before body close custom code area (page settings) on the template or page you wish to run it on.
Glad you were able to implement it. Thanks for the feedback!
@webdev What do I need to open this in another tab? How can I adjust the piece of code.
Can you elaborate with more detail?
I’m using the above script, but when I click my Pinterest button it opens in the same tab. I’d like it to open in a new tab instead.
I would need to see your page to assist. Share both the Read Only and a published URL.
So you were talking about a new browser tab versus a new browser window.
The script that is doing that is handling that function is from Pinterest. Specifically
https://assets.pinterest.com/js/pinmarklet.js so I am not driving.