Connect with us

Tips & Tricks

How to: Create a fbshare.me shortcode

Social networks are everywhere. I am sure you’re on facebook. Well why not at a facebook share script to your site?

Don’t know PHP that well?

Well here is a simple way to add a share script like fbshare.me to your site, via shortcodes.

Paste the following code in your functions.php file in order to create your shortcode:

function fbshare_script() {
     return '<div class="fbshare"><script src="http://widgets.fbshare.me/files/fbshare.js"></script></div>';
}
add_shortcode( 'fbshare', 'fbshare_script' );

Once done, you can display the facebook share button anywhere on your posts. In WordPress editor, make sure you are in HTML mode and insert the following: [fbshare].

When your post will be published, the shortcode will be replaced by the fbshare.me button.

1 Comment

1 Comment

You must be logged in to post a comment Login

Random Search Terms

Title

Top Articles

Top Searches

powered by WassUp

Recent Posts: Fully Net Worth . com

Bikram Choudhury Net Worth: How Rich is the Yoga Teacher?

Bikram Choudhury Net Worth: How Rich is the Yoga Teacher?

Bikram Choudhury is an Indian-American yoga instructor best known as the founder of Bikram Yoga, a form of hot yoga performed in a series of 26 hath a yoga postures in a hot environment. As of 2019, Bikram Choudhury net worth is estimated to be $75 million. Choudhury was born on February 10, 1944, in […]

Matt Higgins Net Worth: 5 Interesting Facts You Should Know

Matt Higgins Net Worth: 5 Interesting Facts You Should Know

Matt Higgins is a celebrated man, who came from the downsides of life to the upper echelons of the world. An investor, businessman, innovator, top executive, and business advisor. Although he had a hard early life at the beginning, he never let background shackles deter him as he steadily moved his way to success. He’s […]

Luh Kel Net Worth: How Rich is the Rapper Actually?

Luh Kel Net Worth: How Rich is the Rapper Actually?

Turran Coleman, who is better known as Luh Kel, is an American singer and songwriter. He is best known for his hit single called “Wrong” which managed to peak at number 37 in the Billboard Hot R&B / Hip-Hop Songs chart and was certified Gold by RIAA in 2019. As of 2019, Luh Kel net […]