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.

Random Search Terms

Title

Top Articles

powered by WassUp

Recent Posts: Fully Net Worth . com

Kairi Cosentino Height, Age, Wiki, Bio, Net Worth & More

Kairi Cosentino Height, Age, Wiki, Bio, Net Worth & More

Kairi Cosentino is a social media personality who is best known for uploading different TikTok videos alongside his friends. His videos have a mix of dance, comedy, lip-sync and other types of videos. Cosentino was born on February 8, 2003, in New Jersey, United States which makes him 16 years old now. He is a […]

Alvaro Romero Net Worth: How Rich is the Tik Tok Star Actually?

Alvaro Romero Net Worth: How Rich is the Tik Tok Star Actually?

Alvaro Romero is an American social media star who is best known for his fun videos that include lip-syncs and dance videos on the popular and trendy app among youths right now called TikTok. As of right now, Romero has been able to develop a following of over a million in his TikTok profile with […]

Chrissy Lampkin Net Worth: How Rich is the Television Star?

Chrissy Lampkin Net Worth: How Rich is the Television Star?

Chrissy Lampkin is an American reality television personality and the Executive Producer at WeTV. She is best known for being a part of the VH1 reality series Love & Hip Hop: New York, as well as the spin-off reality, show Chrissy & Mr. Jones that was conceived after her popularity in the earlier show. As […]