|

How to add a share on Facebook link to your WordPress Theme

Add Facebook share link in WordPress Theme

How to add a share on Facebook link to your WordPress Theme without Plugins. Simply add the code below where you want to display the Share link for Facebok. Search in you post page which is: single.php in your WordPress theme folder and add the code where you want to display the share on Facebook link for your posts.


<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink() ?>" title="Share this post on Facebook" target="_blank">Facebook</a>

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *