Feedburnerの利用をやめることを勧める投稿の後、多くのユーザーからFeedBurnerのフィードにあったようなソーシャル共有ボタンをどのように手に入れることができるのかという質問を受けました。最近のほとんどのフィード読者にはソーシャル共有機能が含まれていますが、この投稿ではWordPress RSSフィードにソーシャルボタンを追加する方法を紹介します。
まず最初に、フィードに表示したいソーシャルボタンをダウンロードする必要があります。無料で利用できるソーシャルメディアのアイコンセットがいくつかあります。あなたのニーズに合ったものを選んでください。その後、メディア ” 新規追加に進み、FacebookとTwitterのアイコンをメディアライブラリにアップロードする必要があります。
アイコンをアップロードしたら、その位置URLをコピーする必要があります。メディア ” ライブラリにアクセスし、Twitterアイコンの下にある編集リンクをクリックしてください。
メディアの編集ページで、ファイルURLをコピー&テキストエディターにペーストします。Twitterアイコンについても同様に作業を繰り返します。これらのURLは後で必要になります。
WordPressの初期設定コンテンツフィルターを使用して、WordPress RSSフィードの各投稿の下にこれらのアイコンを追加します。
このコードをテーマのfunctions.phpファイルまたはサイト固有のプラグインに追加する必要があります。
[cbk1]
このコードは、WordPress RSSフィードの投稿コンテンツの下にソーシャルアイコンを表示するためのHTMLを追加するだけです。
この投稿がWordPress RSSフィードにソーシャルボタンを追加するのにお役に立てば幸いです。
この投稿を気に入っていただけたなら、WordPressの動画チュートリアルのYouTubeチャンネルをぜひご購読ください。Twitterや Google+でもご覧いただけます。
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Moeen Ahmed Sultan says
Hi, it’s a very good article and I have implemented this. I want to know about linkedin, whatsapp, email, print, google+ and other social networks sharing button? And want to know about how to add these buttons below articles as well.
Regards
WPBeginner Support says
While we don’t have these at the moment, we will certainly take a look at possible methods
管理者
Sacha says
Another great option would be to just add these in the SEO > Advanced > RSS with the Yoast SEO plugin.
Julie Ryan says
Wouldn’t work on Genesis / Metro theme.
Yves says
Works without any issue on Genesis.
Hmache Abdou says
didn’t work for me! :'(
Geert De Decker says
Encountererd this problem more then once. Finaly found the solution.
Jean Gérard Bousiquot says
Really good tutorial, as usual. Thanks for sharing!
Đỗ Thành Luân says
It not working on thesis…:(