Hello. I'm having issues with the social media sharing buttons.
What I've done was to grab the site source code:
<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em>"><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>
And I was replacing it with Toolset shorts codes. Worked well for google plus and twitter.
However, it doesn't work with pinterest.
I've tried this for pinterest:
<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em> src="[wpv-post-featured-image output="description"]><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>
When I tried to share it with Pinterest it gives me this error:
Parameter 'image_url' (value http:<img src=) is not a valid URL format.
For Facebook it doesn't load the image or the custom link, just a general link. I used this code for Facebook:
<a target="_blank" href="<em><u>hidden link</u></em>"><i class="fa fa-facebook"></i><span class="dt-share">Facebook</span></a>
Would you be able to help me with this?
Thanks.
Note: I don't have any reference of short codes from my theme to use.
Hi I'll try to help.
Parameter 'image_url' (value http:<img src=) is not a valid URL format.
What are you trying to use as the image for your button? The media attribute should include the URL of a Pinterest logo, but it appears that your code includes something else. There are several types of buttons supported here, with different images for each one:
hidden link
For Facebook it doesn't load the image or the custom link, just a general link.
Actually, the information shown in a timeline / newsfeed post on Facebook isn't defined by the link you create. It's defined by some codes that are placed on each page of your site, called Open Graph meta tags. Without the tags, Facebook doesn't know what to use as content, which image to use, etc. Toolset isn't designed to help you accomplish this. SEO plugins like Yoast offer the ability to customize these values per page or post, so you can define Facebook meta information on a post-by-post basis.
Hi Christian,
Thanks for your reply. Thanks for the Facebook tip. I have checked and Yoast is enabled for Open Graph meta, but it's not working. But I'll try to find the answer why.
Regarding Pininterest I've managed to make it work with this:
<a data-pin-do="none" target="_blank" href="<em><u>hidden link</u></em> output="url"]&description=[wpv-post-title]"><i class="fa fa-pinterest"></i><span class="dt-share">Pinterest</span></a>
Will re-open issue with another ticket.