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

GitHubからWordPressプラグインとテーマをインストールする方法

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

WordPressのプラグインやテーマをGitHubからインストールする方法をご存知ですか?

GitHubは、多くのオープンソースプロジェクトや開発者に利用されているプロジェクトホスティングサービスです。WordPressユーザーであれば、GitHubでホスティングサービスされているプラグインやテーマに出会うこともあるでしょう。

GitHub は WordPress 開発に特化しているわけではないので、新規ユーザーにとって GitHub からプラグインやテーマをダウンロードしてインストールする方法を見つけるのは難しいかもしれません。

この投稿では、WordPressのプラグインやテーマをGitHubからインストールする方法を紹介します。

Installing a WordPress plugin or theme from GitHub

GitHubとは?

先に述べたように、GitHubはコードホスティングサービスです。オープンソースのプロジェクトであれば無料で利用でき、現在オープンソースの開発者の間で最も人気のあるプロジェクトホスティングサービスです。

Gitリビジョンコントロールシステムを使用しているため、GitHubと呼ばれている。それだけでなく、ユーザーをフォローしたり、リポジトリに星をつけたり、リポジトリやプロジェクトを購読したりといった、コラボレーションやソーシャルネットワーク機能のための簡単なツールを提供している。

GitHubは、Gitのリビジョンコントロール機能を使いたいあらゆるプロジェクトで使うことができます。オープンソースのラーニングリソース、ドキュメンテーションプロジェクト、マニュアル、ガイドブックなどに使うことができる。GitHubのツールによって、ユーザーは自分のプロジェクトに他のユーザーを追加し、チームで作業することができる。

ということで、GitHubからWordPressのプラグインやテーマをインストールする方法を見ていきましょう。

GitHubからWordPressプラグインとテーマをインストールする方法

GitHub から WordPress のテーマやプラグインをインストールする前に、そのテーマやプラグインの更新を受け取れるようにしておきましょう。この投稿の後半でその部分を取り上げます。

GitHubからのプラグインやテーマのインストールはとても簡単です。WordPressのプラグインを手動でインストールするのと同じです。

まず、GitHubのプラグイン/テーマのリポジトリにアクセスする必要がある。

リポジトリのメインページで、「Code」ボタンをクリックし、「Download ZIP」を選択します。

GitHub download zip

WordPressの管理エリアに移動し、プラグイン ” 新規追加ページに移動します。

コンピューターからプラグインを手動でアップロードする必要があります。そのためには、「プラグインのアップロード」ボタンをクリックしてください。

Manually upload and install a WordPress plugin

プラグインのzipファイルをアップロードするオプションが表示されます。

Choose file’ボタンをクリックし、コンピューターからZIPファイルを選択してください。

次に、「今すぐインストール」ボタンをクリックしてください。WordPressがあなたのコンピューターからサイトにzipアーカイブをアップロードし、解凍し、プラグインをインストールします。

完了すると、成功のメッセージが表示されます。有効化する」をクリックして、WordPressサイトでプラグインを有効化することができます。

WordPressプラグインの更新をGitHubからインストールする方法

初期設定では、WordPressはプラグインのread meファイルとプラグインヘッダーに基づいてプラグインの新しいバージョンを探します。

しかしWordPressの初期設定では、GitHubからダウンロードしたプラグインの自動更新は表示されません。ユーザーが GitHub リポジトリから直接更新を受け取れるように有効化するには、テーマやプラグインの開発者はちょっとした工夫が必要です。

これを実現するために、GitHubのプラグインやテーマには、自動更新を有効化するコードがすでに含まれている場合があります。

テーマやプラグインの開発者からGitHub Updaterプラグインのインストールを求められることがあります。これにより、GitHub プラグインやテーマの更新を有効化することができます。

いずれの場合も、プラグイン/テーマの開発者にGitHubで連絡し、更新状況について尋ねて、新しいバージョンがリリースされたときに確実に更新を受けられるようにする必要があります。

おまけ:GitHubを使ってWordPressテーマの変更を自動的にデプロイする方法

カスタマイザーテーマの開発者であれば、変更内容を自動的に GitHub にデプロイすることも可能です。

これは多くの時間を節約することができ、また、将来的に変更をロールバックする必要がある場合に備えて、テーマの異なるバージョンを保存しておくことができます。

この方法の詳細については、GitHub と Deploy を使って WordPress テーマの変更を自動的にデプロイする方法をご覧ください。

GitHub から WordPress プラグインやテーマをインストールする際の参考になれば幸いです。サイトのコーディング方法や、専門家が選ぶビジネスサイトに最適な WordPress プラグインも参考にしてください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 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

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

  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. Moinuddin Waheed says

    This is very good news that the vast community of wordpress non code background can also use GitHub for downloading themes and plugins.
    i thought that git and GitHub are only developers per se. But we can use wordpress themes and plugins downloaded from here.
    Thanks wpbeginner for this helpful tutorial.
    At times we don’t get plugin in wordpress repository and Google shows it in GitHub, so we can easily access and test them on our local machines.

  3. Ismail says

    Hello admin,

    Thank you so much for this article and I learn a lot from this site. Today, I want to download Facebook Instant Articles fro Github, and this article help me to do that. But I have a question, if possible please guide me since I am newbie.

    For FBIA plugin from WP Directory, do I have to uninstall it and install the plugin from Github afterwards? I hope you can help me on this. Thank you for your help to all people.

    • WPBeginner Support says

      If you are replacing the plugin with a version from GitHub it would normally be best to remove the old files and then replace them with the plugin from GitHub

      管理者

  4. yh says

    wordpress is saying I need a business plan to add plug ins. is there any way around this? or is there any way for me to retrieve a scheduled post and post it manually? I cant find the post anywhere

  5. Andy Fragen says

    Thanks for mentioning GitHub Updater. It works with plugins or themes hosted on GitHub, Bitbucket or GitLab.

    As a bonus you can use GitHub Updater to perform a one click install of any GitHub, BitBucket, or GitLab (public or private repos) plugins or themes using only the repository URI vastly simplifying the instructions in the article.

  6. adolf witzeling says

    GitHub is great-for learning too. I’ve gained so much knowledge just by looking at code from github. Thanks for this nice post!

  7. Gautam Doddamani says

    GitHub and StackOverflow are some of my favourite sites for checking out useful scripts that i can use on my blog. I am using one plugin from GtiHub myself…but didn’t know about the GitHub updater…thanks guys!

  8. Morgan says

    Here is a real tip:

    Right click “Download ZIP” > Copy Link Address

    Plugins > Add New > Upload > Choose File

    When the window pops-up for you to find your zip file, just paste the URL and it will fetch the link. No need to clutter your computer with files you don’t need.

    • Andy Fragen says

      You can actually do a one click install using the Remote Install feature of GitHub Updater. Added benefit is the plugin/theme directory is correctly renamed.

  9. Tracy says

    Are the plugins found on Github any more “unsafe” than the plugins that are in the repository?

    • WPBeginner Support says

      Tracy, yes there is a chance of that. In the WordPress plugin repository, plugins go through a basic review process and since it is a larger community an unsafe plugin would get caught much quicker than on GitHub.

      管理者

  10. Aaron says

    Awesome article, I heard your interview on Mixergy. Really love how you use FAQ’s to drive content. I had no idea your traffic was so huge- very cool to see your growth through value creation. Congrats! –Aaron

  11. Alfred Degens says

    Thanks for this article!

    Can you tell me where to find WordPress plugins on GitHub?
    Is there a way to search for those open source plugins on Github?
    I tried on Google search but didn’t find any plugin on Github.

    Regards,
    Alfred

返信を残す

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