I have a website with articles listed on a blog page and I want to share a custom Facebook, tweet it & Amp; The email link specified for each article is the code for the Twitter link here:
& lt; A href = \ "https: //twitter.com/share \" data-url = \ "http: //www.mywebsite .co.uk? Article = $ article_out \" & gt; & Lt; Div class = \ "share shareholder \" & gt; & Lt; / Div & gt; & Lt; / A & gt;
The problem is that when I click on the tweet image it tries to share the main blog page rather than the relative article - any idea or how to sort it .
Besides, how can this be done for Facebook and email the article directly?
You have survived the entire HTML, I suspect you use php.
& lt; A href = \ "https: //twitter.com/share \" data-url = \ "http: // www .mywebsite.co.uk? Article = $ article_page \" & gt; & Lt; Div class = \ "share shareholder \" & gt; & Lt; / Div & gt; & Lt; / A & gt;
should be:
& lt; A href = \ "https: //twitter.com/share \" data-url = \ "http: //www.mywebsite.co.uk?article=" $ Article_id "\" & gt; & Lt; Div class = \ "share call sharetivator \" & gt; & Lt; / Div & gt; & Lt; / A & gt;
$ article_id is a variable from php
There is a very similar approach to Facebook here:
To send more emails: < / P>
Comments
Post a Comment