Generates a social media share link

Takes one of these four string options: 'facebook' | 'twitter' | 'linkedin' | 'pinterest' | 'email' as an argument, and prints the link for sharing the current page.


Here we are passing 'facebook' as an argument. (Let’s assume we are on a “” page of our website)

<a href="{tr_social_share('facebook')}">
  Share to Facebook

and it generates this piece of HTML for us:

  Share to Facebook
Join Our Newsletter

To get updates about Theme Redone