github初学者指南_初学者指南:如何安装WordPress主题

github初学者指南

Are you looking to install a WordPress theme?

您是否要安装WordPress主题?

There are thousands of WordPress themes available (both free and paid). As a beginner, you may want to try out a few of them on your site until you find the right one.

有数千个WordPress主题可用(免费和付费)。 作为初学者,您可能想在您的网站上尝试其中的一些功能,直到找到合适的功能。

In this beginner’s guide, we’ll share detailed step by step instructions on how to install a WordPress theme. We’ll cover three different ways to install a WordPress theme, so you can choose the method that works best for you.

在此初学者指南中,我们将分享有关如何安装WordPress主题的详细分步说明。 我们将介绍三种安装WordPress主题的方法,因此您可以选择最适合自己的方法。

Installing a WordPress theme step by step
在安装WordPress主题之前 (Before You Install a WordPress Theme)

Installing a WordPress theme is easy but keep in mind that if you activate a new theme, then it will change how your website looks and functions.

安装WordPress主题很容易,但是请记住,如果激活一个新主题,它将改变您网站的外观和功能。

If you’re switching from an existing theme, then you may want to look at our checklist of things you need to do before changing WordPress themes.

如果您要从现有主题切换到其他主题,则可能需要查看我们在更改WordPress主题之前需要做的事情的清单。

If you are installing a WordPress theme on a new site, then you are good to go.

如果您要在新站点上安装WordPress主题,那很好。

Bonus Tip: See our list of the best and most popular WordPress themes.

温馨提示:请参阅我们的最佳和最受欢迎的WordPress主题列表

影片教学 (Video Tutorial)

演示地址

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

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

使用WordPress Admin主题搜索安装主题 (Install a Theme using WordPress Admin Theme Search)

If you’re looking to install a free WordPress theme from the WordPress.org themes directory, then the easiest way is by using the built-in theme search functionality.

如果您要从WordPress.org主题目录安装免费的WordPress主题 ,那么最简单的方法是使用内置的主题搜索功能。

The first thing you need to do is log in to your WordPress admin area. Next, go to the Appearance » Themes page and click on the Add New button.

您需要做的第一件事是登录WordPress管理区域。 接下来,转到外观»主题页面,然后单击添加新按钮。

Add new theme in WordPress admin area

On the next screen, you will have the ability to select from: Featured WordPress themes, Popular WordPress themes, Latest WordPress themes, search for a specific theme, or search for themes with specific features.

在下一个屏幕上,您将可以选择:精选WordPress主题,流行WordPress主题,最新WordPress主题,搜索特定主题或搜索具有特定功能的主题。

Add new theme toolbar and search

Clicking on the ‘Feature Filter’ button will allow you to sort themes based on features. For instance, you can sort themes by subject, specific features, and layout.

单击“功能过滤器”按钮将使您可以根据功能对主题进行排序。 例如,您可以按主题,特定功能和布局对主题进行排序。

Filter theme results by feature

Based on your search, you will see a list of themes that met your criteria. In our case, we searched for the popular Astra theme.

根据您的搜索,您将看到符合条件的主题列表。 在我们的案例中,我们搜索了流行的Astra主题

When you see the theme that you want to install, simply bring your mouse on top of the image. This will reveal the install button, preview button, and details button.

当您看到要安装的主题时,只需将鼠标放在图像上方即可。 这将显示安装按钮,预览按钮和详细信息按钮。

Go ahead and click on the install button.

继续并单击安装按钮。

Install WordPress theme

WordPress will now install your theme and show you a success message along with ‘Activate’ or ‘Live preview’ buttons.

WordPress现在将安装您的主题,并向您显示成功消息以及“激活”或“实时预览”按钮。

Activate theme

Click on the activate button, and you’ve successfully installed and activated your WordPress theme.

单击激活按钮,您已经成功安装并激活了WordPress主题。

Depending on the theme, it may add additional settings options that you may need to configure.

根据主题,它可能会添加您可能需要配置的其他设置选项。

For instance, your theme may ask you to install the recommended plugins, download demo data, or review settings.

例如,您的主题可能会要求您安装推荐的插件,下载演示数据或查看设置。

You can follow the on-screen instructions, or click on the customize button to start setting up your theme.

您可以按照屏幕上的说明进行操作,也可以单击“自定义”按钮开始设置主题。

Customizing themes
使用WordPress Admin中的Upload方法安装主题 (Install a Theme by using the Upload Method from WordPress Admin)

The first method that we covered only allows you to install free themes that are available in the WordPress.org theme’s directory.

我们介绍的第一种方法仅允许您安装WordPress.org主题目录中可用的免费主题。

What if you want to install a premium WordPress theme from companies like StudioPress, Elegant Themes, Themify, etc.

如果您想安装StudioPressElegant ThemesThemify等公司的高级WordPress主题怎么

Or what if you want to install a custom theme? Well, in this case, you would need to install the theme using the upload method from your WordPress admin.

或者,如果您想安装自定义主题怎么办? 好了,在这种情况下,您需要使用WordPress管理员中的上载方法安装主题。

Start by downloading the .zip file of the theme that you purchased from a marketplace or a commercial theme shop.

首先下载从市场或商业主题商店购买的主题的.zip文件。

Next, go to the Appearance » Themes page in WordPress admin area and click on the Add New button at the top.

接下来,转到WordPress管理区域中的外观»主题页面,然后单击顶部的添加新按钮。

Add new theme button

This will take you to the add new theme page showing featured free themes. Since you already have the theme you want to install, go ahead and click on the ‘Upload Theme’ button at the top.

这将带您进入添加新主题页面,其中显示特色免费主题。 由于您已经具有要安装的主题,请继续并单击顶部的“上传主题”按钮。

Upload theme button

You will be prompted to choose the zip file that you downloaded earlier. Select the file and click Install Now.

系统将提示您选择先前下载的zip文件。 选择文件,然后单击立即安装。

Upload and install theme

Once your theme is installed, you will see a success message along with the link to activate and preview the theme.

安装主题后,您将看到成功消息以及用于激活和预览主题的链接。

Theme installed and ready to be activated

Click on the ‘Activate’ link, and you’ve successfully installed and activated your WordPress theme.

单击“激活”链接,您已经成功安装并激活了WordPress主题。

Depending on the theme, it may add additional settings options that you may need to configure either through the theme customizer or through a separate options panel.

根据主题,它可能会添加您可能需要通过主题定制器或通过单独的选项面板进行配置的其他设置选项。

Note: The theme upload functionality is only available for self-hosted WordPress.org users. If you’re using WordPress.com, then you will not see this option because it limits you.

注意:主题上传功能仅适用于自托管的WordPress.org用户。 如果您使用的是WordPress.com,则不会看到此选项,因为它限制了您的权限

In order to use custom theme upload feature, you would need to use self-hosted WordPress.org (See this article that explains the difference between Self Hosted WordPress.org vs WordPress.com).

为了使用自定义主题上载功能,您将需要使用自托管的WordPress.org(请参阅本文介绍自托管WordPress.org与WordPress.com之间的区别)。

If you want to switch from WordPress.com to WordPress.org, then read our tutorial on how to properly move from WordPress.com to WordPress.org.

如果要从WordPress.com切换到WordPress.org,请阅读有关如何正确地从WordPress.com迁移到WordPress.org的教程。

使用FTP安装WordPress主题 (Installing a WordPress Theme using FTP)

If you’re feeling adventurous and want to take your skills to the next level, then you can learn about installing WordPress themes using FTP.

如果您喜欢冒险,并且想将自己的技能提高到一个新的水平,那么您可以了解有关使用FTP安装WordPress主题的信息。

Remember, this is not for true beginners because it is a little bit more advanced.

请记住,这不是真正的初学者,因为它要先进一些。

First, you need to download the theme zip file to your computer. After that, you need to unzip the file.

首先,您需要将主题zip文件下载到计算机上。 之后,您需要解压缩文件。

This will create a new folder with the theme’s name on your computer. We downloaded the popular Divi premium theme.

这将在您的计算机上创建一个带有主题名称的新文件夹。 我们下载了流行的Divi高级主题

Extracted theme files

Now that you have the theme files, you are ready to upload them to your website.

有了主题文件之后,就可以将它们上传到您的网站了。

To do that, you’ll need to connect to your website / WordPress hosting account using an FTP client. If you need help, then see our guide on how to use FTP to upload WordPress files.

为此,您需要使用FTP客户端连接到您的网站/ WordPress托管帐户。 如果您需要帮助,请参阅有关如何使用FTP上传WordPress文件的指南

Once connected, you need to go to /wp-content/themes/ folder. Inside, you’ll see folders for all themes currently installed on your website.

连接后,您需要转到/ wp-content / themes /文件夹。 在内部,您将看到网站上当前安装的所有主题的文件夹。

Upload theme files via FTP

Select your unzipped theme folder from your computer and then upload it to your website.

从计算机中选择解压缩的主题文件夹,然后将其上传到您的网站。

Once you have uploaded the theme, you would need to go to your admin area and click on Appearance » Themes.

上传主题后,您需要进入管理区域,然后单击外观»主题

You should see the theme that you uploaded listed there. Simply bring your mouse on top of that theme and click on the activate button.

您应该在此处看到上载的主题。 只需将鼠标放在该主题的顶部,然后单击“激活”按钮。

Activate uploaded theme
关于安装WordPress主题的常见问题解答 (FAQs About Installing WordPress Themes)

The following are some of the most commonly asked questions about installing WordPress themes.

以下是有关安装WordPress主题的一些最常见问题。

1. How many themes can I use in WordPress?

1.我可以在WordPress中使用多少个主题?

You can only use one theme at a time. However, you can install as many themes as you like. Not all installed themes on your WordPress website are active.

您一次只能使用一个主题。 但是,您可以安装任意多个主题。 并非您的WordPress网站上所有已安装的主题都处于活动状态。

As soon as you activate a WordPress theme, it automatically deactivates your previous active theme and makes the new theme your active theme.

激活WordPress主题后,它将自动停用先前的活动主题,并使新主题成为活动主题。

2. What is a child theme in WordPress?

2. WordPress中的子主题是什么?

A child theme in WordPress is a sub-theme that inherits all the functionality, features, and style of its parent theme. You will need to install both parent and child themes on your website and activate the child theme.

WordPress中的子主题是一个子主题,继承了其父主题的所有功能,特性和样式。 您将需要在网站上同时安装父主题和子主题,然后激活子主题。

For more details, see our guide on how to create a child theme in WordPress and how to install a child theme in WordPress.

有关更多详细信息,请参见有关如何在WordPress中创建子主题以及如何 在WordPress 中安装子主题的指南

3. What is a WordPress theme framework?

3.什么是WordPress主题框架?

Theme frameworks are highly optimized WordPress themes designed to be used as parent theme.

主题框架是经过高度优化的WordPress主题,旨在用作父主题。

Intended for advanced users and developers, these theme frameworks contain several code and speed optimizations that help other developers quickly build upon them.

这些主题框架面向高级用户和开发人员,其中包含一些代码和速度优化,可帮助其他开发人员快速构建它们。

Genesis by StudioPress is the best example of a WordPress theme framework. For more information, see our article on WordPress theme frameworks.

StudioPress的 Genesis是WordPress主题框架的最佳示例。 有关更多信息,请参阅关于WordPress主题框架的文章。

4. Premium vs Free themes – Which one I should use?

4.高级vs免费主题–我应该使用哪一个?

If you are just starting out on a limited budget, then we recommend getting started with a flexible free theme. See our pick of the best free WordPress themes for blogs and best free themes for business websites.

如果您刚开始预算有限,那么我们建议您以灵活的免费主题开始。 请参阅我们精选的博客最佳免费WordPress主题商业网站最佳免费的主题

If you can spend a little more, then choose a premium theme. These themes come with priority support which comes in handy particularly for beginners.

如果您可以花更多钱,请选择高级主题。 这些主题带有优先支持,特别是对于初学者而言,这些支持很方便。

For more on this topic, see our guide on free vs premium WordPress themes.

有关此主题的更多信息,请参阅免费和高级WordPress主题指南。

5. How do I choose the best theme for my website?

5.如何为我的网站选择最佳主题?

There are so many WordPress themes out there and most of them are designed by professionals so they look really great.

那里有很多WordPress主题,而且其中大多数都是由专业人士设计的,因此看起来真的很棒。

This makes it a bit confusing for beginners to choose the perfect theme for their website.

这使初学者为他们的网站选择完美的主题有些困惑。

We recommend keeping it simple. Choose a minimalist design that comes close to what you have in your mind. Make sure that the theme looks great on mobile and run a website speed test on the demo site.

我们建议保持简单。 选择与您的想法接近的简约设计。 确保主题在移动设备上看起来不错,并在演示站点上运行网站速度测试

See our beginner’s guide on how to choose the perfect WordPress theme for your website.

请参阅我们的初学者指南,了解如何为您的网站选择完美的WordPress主题

6. Can I use the same theme I have seen on another WordPress site?

6.我可以使用在另一个WordPress网站上看到的相同主题吗?

If it is not a custom WordPress theme, then you can find and use the same theme on your own website. See our guide on how to find out which WordPress theme a site is using.

如果不是自定义WordPress主题,那么您可以在自己的网站上找到并使用相同的主题。 请参阅我们的指南,以了解网站正在使用哪个WordPress主题

We hope this step by step guide helped you install a WordPress theme on your site. You may also want to see our guide on how to make money online from your new WordPress website, and the must have / best WordPress plugins.

我们希望本逐步指南能帮助您在网站上安装WordPress主题。 您可能还需要看我们的指南, 指南介绍了如何从新的WordPress网站上在线赚钱 ,以及必备/最佳WordPress插件

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

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-theme/

github初学者指南

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值