Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How can I add social share buttons in snowflat theme without any plugin?

+1 vote
90 views
asked Sep 8 in Themes by Zeeshan
Q2A version: 1.8

2 Answers

0 votes
answered Sep 9 by Saad H
edited Sep 9 by Saad H

You can use (addtoany code) share buttons
from this link : https://www.addtoany.com


And it is better to use Widget Anywhere Plugin
for locate the share buttons in any where you like 

   from here

commented Sep 10 by Zeeshan
I do not want to use plugin or javascript.
is there a way by editing code of theme?
0 votes
answered Sep 10 by esqeudero

You can do a custom widget that would cause zero-load to you website server. Because it wont include any js, img, css files or mysql queries.

Just assign the link you want to share to a variable, say $share_link, and use following links to share in facebook or twitter.

'https://www.facebook.com/sharer/sharer.php?u='.$share_link

'https://twitter.com/intent/tweet?url='.$share_link

commented Sep 11 by Zeeshan
can you please explain in detail?
which code and where should I paste it?
...