您的网站通常是与您的品牌的第一批互动线索。在这里,潜在客户可以购买,了解您的产品并了解您公司的使命。bob全站app

That’s why customizing your website to accurately represent your business, welcome your visitors, and make them want to spend time on your website is integral to your growth.

使用HubSpot的WordPress网站来发展业务

自定义WordPress网站设计的一部分需要选择主题。而且,由于您已经知道您可以对模板,帖子和网页选择主题进行自定义的调整和样式更改,因此这自然会导致一个问题:

我可以在WordPress中使用多个主题吗?

也许您希望您的主页具有与网站其余部分不同的主题,因此它在其他网页中脱颖而出,并为访问者提供了令人难忘的欢迎,或者您希望自定义产品或服务页面以更好地突出您的品牌。

事实证明,实际上有一个应用程序 - 实际上是一个插件。

多个主题:WordPress

在本文中,我们将查看在WordPress网站的不同页面上使用多个主题所需的步骤。

1.备份您的网站。

To prepare your website for multiple themes, you’ll first want to perform acomplete backup of your WordPress websiteprior to making any changes.

这将按照备份时(包括所有帖子,链接,评论,设计等)的方式来保存网站的各个方面,以防万一删除任何内容或您的网站被损坏。

您的网站可以被删除或损坏的原因有很多,包括激活网站上的多个主题。这就是为什么正确备份网站如此有价值的原因 - 如果丢失任何内容,您将有机会有效地恢复您的网站。

2. Turn off caching plugins.

在启用新主题的同时,由于缓存插件会导致显示页面的较旧版本,因此您可能无法看到您对网站的更改。因此,请确保关闭所有WordPress caching plugins

这使您可以实时查看您对网站的更改。通过关闭缓存插件,您将阻止自己在启用新主题的同时看到网站的较旧版本。

3. Enable the plugin for multiple themes.

在您的网站上安装多个主题的插件 - 您需要的插件称为Multiple Themes

如何在WordPress网站上启用WordPress插件的多个主题

来源

4. Decide where you’ll use multiple themes on your website.

安装插件后,请转到外貌查看您的新插件。现在,您可以确定网站上使用多个主题的位置。如何在WordPress中的WordPress网站上决定在哪里使用多个主题

来源

您可以在主页上添加新主题,也可以在网站上的特定网页中添加一个新主题 - 让我们介绍接下来的方法。

Change the Theme on Your Homepage

To use the Multiple Themes plugin on your homepage, go to Settings > Site Homepage. Here you can choose a different theme of your choice for your website’s homepage in the dropdown menu. Once you’ve picked a theme, click Save All Changes.

how to Change the wordpress Theme on Your Homepage in wordpress

来源

有几个方法可以改变主题a web page — there isn’t a right or wrong when choosing between these options. It's more about preference and what exactly you’re trying to achieve with your multiple themes.

Change the Theme on a Web Page: Method One

The first option is to choose and assign different themes to specific web pages or posts based on the permalink, or the URL, of that page.

For example, if you want all of your blog posts that share a URL structure to have the same theme, then you’ll use this method and select URL Prefix.

为此,请向下滚动到URL前缀的选项并选择它,然后单击“下拉菜单”中要使用的主题。

最后,输入与您所有博客文章相对应的URL前缀,例如yourwebsite.com/blog。然后单击保存所有更改。

如何更改WordPress网页上的WordPress主题的示例

来源

更改网页上的主题 - 方法两个

The second option is to choose a unique theme for specific web pages or posts based on a unique keyword. The plugin will search your page for the keyword and apply your chosen theme wherever the keyword is identified in the URL.

To do this, scroll down to the Query Keyword section and click on your theme of choice in the dropdown menu. Then, fill in your Query Keyword in the box.

例如,如果您想更改网站上所有推荐的主题,则可以在查询关键字字段中输入推荐,并将其添加到每个相应的URL中。

example of how you can Change your wordpress Theme on a wordpress Web Page

来源

您还可以使用此选项添加查询值,以将包含您关键字和值的所有URL添加唯一的主题。

For example, say you have a blog on your website and want a specific theme to be used for a writer named Alice. You’d enter a relevant keyword under查询关键字(类似“博客”)然后输入爱丽丝进入说的盒子Query Value。Then clickSave All变化。爱丽丝的所有帖子都将具有相同的主题。

一旦确定了如何以及在何处实施主题,您就可以进一步自定义它们高级设置。有一些选项可以选择出现在所有网站页面上的主题,更改网站的主要主题,选择主题用于特定URL的主题等等。

例如,如果要分别向不同的帖子和网页添加多个主题,请单击高级设置, choose对于所有页面和/或帖子,并单独选择主题。

5.修改和自定义主题。

通过前往外貌>主题选项。您会找到有关WordPress的各种方式的指南,您可以自定义主题以及有关如何查看预览中的这些更改以及以满足您特定需求的方式激活它们的详细信息。

how to modify and customize your wordpress themes in wordpress

来源

重要的是要注意,当您将多个主题应用于不同的页面和帖子时,您的网站不会自动更改当前/活动主题。相反,您必须暂时激活新主题,以适当地修改和自定义。

To do this, click定制在下面外貌标签并将主题修改为您的喜好。完成后,保存您的设置并返回到Themes。Then, you can reactivate your old theme.

6. Note the limitations of the plugin.

As with anything, it’s important to remember the limitations of the multiple themes plugin. This will allow you to plan how you’ll incorporate the themes on your website.

一个域上的多个WordPress主题

请记住,在一个域上使用多个WordPress主题时,您的唯一选择包括更改主页的主题或通过URL或查询关键字的网页或帖子之一的主题。

If you’re looking to make changes to your site’s themes in any other way, you’ll have to create a different website with a new theme entirely — that is, build amultisite network in WordPress

What This Looks Like in Practice

您已经根据URL或关键字分配了具有不同主题的多个页面,以帮助简化您的网站。那么,这在实践中是什么样的?

考虑您的主页。您希望此页面脱颖而出,引起注意并帮助引起访客的参与度。在这里,您可能想使用二十一个主题之类的东西,该主题是大胆,简单的,

example of a homepage wordpress theme for your website

来源

When it comes to product pages, meanwhile, you’ll want a theme designed to showcase multiple products and make it easy for users to click through and discover more. Here, it’s worth considering a theme like Storefront.

来源

It’s also a good idea to include an "About Us” page on your site that offers visitors insight into your mission, values, and goals. Consider using something like the Go theme which is simple and straightforward to help direct user attention exactly where you want it.

example of an about us wordpress theme for your wordpress website

来源

Start Using Multiple Themes on WordPress

也许您希望您的主页与WordPress网站的其余部分具有完全不同的外观。也许您希望其中一个网页从其他页面中脱颖而出。或者,也许您希望为每个单独的页面定义特定功能。

Whatever the reason, follow the steps above to achieve a unique and custom look on your WordPress pages and posts.

编者注:该帖子最初于2019年1月发表,并已更新以进行全面性。

使用WordPress网站上的HubSpot工具,并在不处理代码的情况下连接两个平台。点击这里了解更多。

使用WordPress网站上的HubSpot工具,并在不处理代码的情况下连接两个平台。点击这里了解更多。

Originally published Jun 4, 2021 7:00:00 AM, updated June 04 2021

Topics:

WordPress主题