Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressのRSSフィードにソーシャルボタンを追加する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

Feedburnerの利用をやめることを勧める投稿の後、多くのユーザーからFeedBurnerのフィードにあったようなソーシャル共有ボタンをどのように手に入れることができるのかという質問を受けました。最近のほとんどのフィード読者にはソーシャル共有機能が含まれていますが、この投稿ではWordPress RSSフィードにソーシャルボタンを追加する方法を紹介します。

Social sharing buttons displayed in WordPress RSS Feed

まず最初に、フィードに表示したいソーシャルボタンをダウンロードする必要があります。無料で利用できるソーシャルメディアのアイコンセットがいくつかあります。あなたのニーズに合ったものを選んでください。その後、メディア ” 新規追加に進み、FacebookとTwitterのアイコンをメディアライブラリにアップロードする必要があります。

Upload social media icons to WordPress Media Library

アイコンをアップロードしたら、その位置URLをコピーする必要があります。メディア ” ライブラリにアクセスし、Twitterアイコンの下にある編集リンクをクリックしてください。

Edit social icon files

メディアの編集ページで、ファイルURLをコピー&テキストエディターにペーストします。Twitterアイコンについても同様に作業を繰り返します。これらのURLは後で必要になります。

Get the icon file URL

WordPressの初期設定コンテンツフィルターを使用して、WordPress RSSフィードの各投稿の下にこれらのアイコンを追加します。

このコードをテーマのfunctions.phpファイルまたはサイト固有のプラグインに追加する必要があります。

[cbk1]

このコードは、WordPress RSSフィードの投稿コンテンツの下にソーシャルアイコンを表示するためのHTMLを追加するだけです。

この投稿がWordPress RSSフィードにソーシャルボタンを追加するのにお役に立てば幸いです。

この投稿を気に入っていただけたなら、WordPressの動画チュートリアルのYouTubeチャンネルをぜひご購読ください。Twitterや Google+でもご覧いただけます。

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

10件のコメント返信を残す

  1. 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!

  2. 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

      管理者

  3. Sacha says

    Another great option would be to just add these in the SEO > Advanced > RSS with the Yoast SEO plugin.

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。