1

I am making a mobile friendly responsive Blogspot blogger template, with social media sharing buttons including WhatsApp, the button on template works fine when it comes to sharing URL of the post or blog, but I want it to sent text of the post instead of URL, if anyone can help me with codes, following is the codes for the WhatsApp button.

<a class='bitz' expr:data-href='data:post.url' expr:data-text='data:post.title' href='#' title='Share on whatsapp'><i class='fa fa-whatsapp'/></a>
sagar chaudhary
  • 33
  • 1
  • 12
  • Maybe you find some info [here](http://stackoverflow.com/questions/21935149/sharing-link-on-whatsapp-from-mobile-website-not-application-for-android). – web_xaser Jul 04 '16 at 10:00
  • @web_xaser Code in my question works, it shows whatsapp icon under every post, and after some modifications like instead of "expr:data-href='data:post.url" i have added "expr:data-href='data:post.body" and because of this it actually share content of the post instead of just url of the post, but along with post the button share some codes as well like

    , so if you can help me with it that'll be great.

    – sagar chaudhary Jul 04 '16 at 14:29
  • Try to use "data:post.snippet" or "data:post.title". – web_xaser Jul 05 '16 at 15:37
  • 1
    @web_xaser "data:post.snippet" worked. thank you very much – sagar chaudhary Jul 05 '16 at 17:11

1 Answers1

0

Use data:post.snippet to get a summary of the blog.

Joundill
  • 6,828
  • 12
  • 36
  • 50