• 周三. 4 月 22nd, 2026

物嫩软件资讯网

软件资讯来物嫩

如何从GitHub安装WordPress插件和主题

admin@wunen

5 月 29, 2025

GitHub is a project hosting service used by many open source projects and developers. As a WordPress user, sometimes you may come across plugins or themes hosted on GitHub. Since GitHub is not specific to WordPress development, it may be difficult for a new user to figure out how to download and install a plugin or theme from GitHub. In this article, we will show you how to install WordPress plugins or themes from GitHub.

GitHub是许多开源项目和开发人员使用的项目托管服务。 作为WordPress用户,有时您可能会遇到托管在GitHub上的插件或主题。 由于GitHub并非特定于WordPress开发,因此新用户可能很难弄清楚如何从GitHub下载和安装插件或主题。 在本文中,我们将向您展示如何从GitHub安装WordPress插件或主题。

影片教学

(

Video Tutorial

)


演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

什么是GitHub?

(

What is GitHub?

)

As we mentioned earlier that GitHub is a code hosting service. It is free to use for

open source

projects, and currently it is the most popular project hosting service among open source developers. It uses Git revision control system, hence the name GitHub. Not only it provides easy tools for collaboration, GitHub also offers social networking features such as following users, giving repositories stars, subscribing to repositories and projects, etc.

如前所述,GitHub是代码托管服务。 它可免费用于

开放源代码

项目,当前是开放源代码开发人员中最受欢迎的项目托管服务。 它使用Git版本控制系统,因此名为GitHub。 GitHub不仅提供了简单的协作工具,而且还提供了社交网络功能,例如关注用户,给存储库加注星标,订阅存储库和项目等。

Github can be used on any kind of projects that want to utilize Git revision control features. For example, Open Source learning resources, documentation projects, manuals, guidebooks, etc. GitHub’s tools allow users to add other users to their projects and work with in teams.

Github可以用于任何想要利用Git版本控制功能的项目。 例如,开源学习资源,文档项目,手册,指南等。GitHub的工具允许用户将其他用户添加到他们的项目中,并与团队合作。

从GitHub下载并安装WordPress插件和主题

(

Downloading and Installing WordPress Plugins and Themes From GitHub

)

Before you install a WordPress theme or plugin from GitHub, make sure that you are able to receive updates for it. We will cover that part later in this article.

在从GitHub安装WordPress主题或插件之前,请确保您能够接收到它的更新。 我们将在本文后面介绍这一部分。

Installing plugins and themes from GitHub is super easy. It is just like

installing a WordPress plugin

manually.

从GitHub安装插件和主题非常简单。 就像手动

安装WordPress插件一样

First go to the plugin / theme’s repository on GitHub. On the main page of the repository, click on clone or download button and then click on Download Zip button.

首先转到GitHub上的plugin / theme的存储库。 在存储库的主页上,单击“克隆”或“下载”按钮,然后单击“下载压缩”按钮。

Now, head over to your WordPress admin area and go to

Plugins » Add New

page.

现在,转到您的WordPress管理区域,然后转到“

插件”»“添加新

页面”。

You will need to manually upload the plugin from your computer. To do that, click on the upload button.

您需要从计算机上手动上传插件。 为此,请单击上载按钮。

This will show you the option to upload plugin’s zip file.

这将为您显示上传插件的zip文件的选项。

You need to click on the ‘Choose file’ button and then select the ZIP file from your computer.

您需要单击“选择文件”按钮,然后从计算机中选择ZIP文件。

Next, you need to click on the Install Now button. WordPress will now upload the zip archive from your computer to your website, unzip it, and install the plugin for you.

接下来,您需要单击立即安装按钮。 WordPress现在将zip存档从您的计算机上传到您的网站,解压缩并为您安装插件。

Once it is done you will see a success message. You can then click on

Activate Plugin

link to activate the plugin on your site.

完成后,您将看到一条成功消息。 然后,您可以单击“

激活插件”

链接来激活您网站上的插件。

如何获取从GitHub安装的WordPress插件的更新?

(

How to Get Updates for WordPress Plugins Installed From GitHub?

)

By default, WordPress looks for a newer version of the plugin based on a plugin’s read me file and plugin header which contains the information about the latest stable version to use. However, WordPress does not show automatic

updates

for plugins downloaded from GitHub by default. To enable users to automatically receive updates directly from GitHub repositories, theme and plugin developers need to make a little extra effort.

默认情况下,WordPress根据插件的自述文件和插件头(包含有关要使用的最新稳定版本的信息)寻找插件的较新版本。 但是,默认情况下,WordPress不会显示从GitHub下载的插件的自动

更新

。 为了使用户能够直接从GitHub存储库自动接收更新,主题和插件开发人员需要付出一些额外的努力。

To achieve this some plugins and themes from GitHub may already have included the code which will enable you to receive automatic updates.

为此,GitHub上的某些插件和主题可能已经包含了代码,使您能够接收自动更新。

In some cases the theme / plugin developer may ask you to install

GitHub Updater

plugin. Which will enable you to get updates for GitHub plugins and themes utilizing this method.

在某些情况下,主题/插件开发人员可能会要求您安装

GitHub Updater

插件。 这将使您能够使用此方法获取GitHub插件和主题的更新。

In either case, you will have to contact the plugin/theme developer on GitHub and ask them about the updates situation to be sure about receiving updates when they release a new version.

在任何一种情况下,您都必须联系GitHub上的插件/主题开发人员,并询问他们有关更新的情况,以确保他们在发布新版本时收到更新。

We hope this guide helped you install WordPress plugins or themes from GitHub.

我们希望本指南能帮助您从GitHub安装WordPress插件或主题。

If you like the plugin or theme that you are using from GitHub, then don’t forget to star that plugin on GitHub. This will let the developers know that you appreciate their effort. Let us know what interesting WordPress projects you discovered on GitHub by leaving a comment below.

如果您喜欢从GitHub使用的插件或主题,那么不要忘记在GitHub上给该插件加注星标。 这将使开发人员知道您赞赏他们的努力。 通过在下面留下评论,让我们知道您在GitHub上发现了哪些有趣的WordPress项目。

翻译自:

https://www.wpbeginner.com/beginners-guide/how-to-install-wordpress-plugins-and-themes-from-github/

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注