如何查找站点正在使用哪个WordPress主题

Have you ever wanted to find out which WordPress theme a website is using? Often we get emails from readers asking us for help in finding the exact theme that a certain website is using. In this article, we will show you how to easily find out which WordPress theme a specific website is using.

您是否曾经想找出网站正在使用哪个WordPress主题? 通常,我们会收到读者的电子邮件,要求我们提供帮助以找到特定网站正在使用的确切主题。 在本文中,我们将向您展示如何轻松找出特定网站使用的WordPress主题。

Which Theme is a Website is Using?

When you are starting a new website, choosing the right theme is a very important decision.

当您启动一个新网站时 ,选择正确的主题是一个非常重要的决定。

Often you have ideas and inspirations that you have seen on other websites. In some cases, you may want your website to have almost the same layout and features as another website that you saw on the internet.

通常,您会有在其他网站上看到的想法和灵感。 在某些情况下,您可能希望您的网站具有与在互联网上看到的另一个网站几乎相同的布局和功能。

This could be possible specially if that website is using one of the thousands of free and paid WordPress themes available in the market.

如果该网站使用的是市场上成千上万的免费和付费WordPress主题之一,则这可能特别有可能。

And thankfully, it’s quite easy to find out which WordPress theme a website is using.

值得庆幸的是,找出网站正在使用哪个WordPress主题非常容易。

影片教学 (Video Tutorial)

演示地址

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

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

方法1.使用IsItWP查找网站使用的WordPress主题 (Method 1. Find WordPress Theme used by a Website with IsItWP)

One of the easiest way to detect WordPress theme used by a website is with IsItWP. It is an online tool that allows you to look up plugins and themes used by a WordPress website.

IsItWP是检测网站使用的WordPress主题的最简单方法之一 。 这是一个在线工具,可让您查找WordPress网站使用的插件和主题。

First, you need to visit IsItWP website and enter the URL of a website you want to check.

首先,您需要访问IsItWP网站,然后输入要检查的网站的URL。

Looking up a website on IsItWP

IsItWP will first check if the website is using WordPress. If it is a WordPress powered website, then IsItWP will check which WordPress theme the website is using. It will also try to detect WordPress plugins used by the website.

IsItWP将首先检查网站是否使用WordPress。 如果是基于WordPress的网站,则IsItWP将检查该网站正在使用哪个WordPress主题。 它还将尝试检测该网站使用的WordPress插件

After that, it will show you the results with more details about the plugins and theme used by the website.

之后,它将向您显示结果以及有关网站使用的插件和主题的更多详细信息。

WordPress theme and plugin details

IsItWP may not be able to offer you details about a custom WordPress theme or a child theme.

IsItWP可能无法为您提供有关自定义WordPress主题子主题的详细信息。

However it will display the name of the theme, so you can google it to see if it’s available for download.

但是,它将显示主题的名称,因此您可以在Google上搜索它是否可以下载。

方法2。手动检测网站使用的WordPress主题 (Method 2. Manually Detect WordPress Theme Used by a Website)

Sometimes website owners change the WordPress theme name. This stop tools like IsItWP to detect which WordPress theme they are using.

有时,网站所有者会更改WordPress主题名称。 像IsItWP这样的停止工具可以检测到他们正在使用哪个WordPress主题。

However, there still might be plenty of clues hidden in the code that you can detect and find the WordPress theme they are using.

但是,代码中可能仍然隐藏着许多线索,您可以检测到它们并找到他们正在使用的WordPress主题。

Let’s get started.

让我们开始吧。

Each WordPress theme is required to have a style.css file. This file contains theme header which tells WordPress the name of the theme, theme author, URI, version, etc. It also contains CSS styles used by the theme.

每个WordPress主题都必须具有一个style.css文件。 该文件包含主题标头,用于告诉WordPress主题名称,主题作者,URI,版本等。它还包含主题使用的CSS样式

To locate this file, first you need to visit the website. Right click anywhere on the screen and select ‘View Page Source’ from the menu.

要找到此文件,首先您需要访问该网站。 右键单击屏幕上的任意位置,然后从菜单中选择“查看页面源代码”。

View page source of a WordPress website

This will open the source code of the page you are viewing in a new browser tab. Now you need to find a line in the source code that looks something like this:

这将在新的浏览器选项卡中打开您正在查看的页面的源代码。 现在,您需要在源代码中找到看起来像这样的一行:


<link rel='stylesheet' id='themename_style-css'  href='http://example.com/wp-content/themes/theme-name/style.css?ver=1.1.47' type='text/css' media='all' />

You can click on the URL in this line to open the style.css file.

您可以单击此行中的URL打开style.css文件。

On top of the style.css file, you will see the theme header block which contains information about the theme used by the website. Typically, it would look something like this:

在style.css文件的顶部,您将看到主题标题块,其中包含有关网站使用的主题的信息。 通常,它看起来像这样:


Theme Name:     Theme Name 
Theme URI:      https://example.com
Author:         ThemeAuthorName
Author URI:     https://example.com
Description:    My Theme is a flexible WordPress theme designed for portfolio websites
Version:        1.1.47
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    hestia
Tags: blog, custom-logo, portfolio, e-commerce, rtl-language-support, post-formats, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready

You may be able to find the Theme’s URL or Theme Author’s URL here which will lead you to the theme used by the website.

您可能可以在此处找到主题的URL或主题作者的URL,这将带您进入网站使用的主题。

Finding The Parent Theme

寻找父母主题

Many WordPress websites use child themes to customize their websites. In that case, their theme header will contain information about the parent theme they are using.

许多WordPress网站使用子主题来自定义其网站。 在这种情况下,他们的主题标题将包含有关他们正在使用的父主题的信息。


*
Theme Name:   My Child Theme
Description:  Just a child theme
Author:       Peter Smith
Author URL:   Write here the author's blog or website url
Template:     hestia
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  my-child-theme
*/

In the above example, this header block has an extra ‘Template’ parameter in the theme header block. This template is the parent theme used by this website.

在上面的示例中,此标题块在主题标题块中具有一个额外的“ Template”参数。 该模板是本网站使用的父主题。

You can also find out the parent theme by looking at the website’s source code. There you will find another style.css file loaded from another theme. This other style.css file is the parent theme’s stylesheet and clicking on it will tell you which parent theme a site is using.

您还可以通过查看网站的源代码来找到父主题。 在那里,您将找到从另一个主题加载的另一个style.css文件。 这另一个style.css文件是父主题的样式表,单击该文件将告诉您网站正在使用哪个父主题。

That’s all for now, we hope this article helped you learn how to find which WordPress theme a site is using. You may also want to see our ultimate list of the most wanted WordPress tips, tricks, and hacks.

到此为止,我们希望本文能帮助您学习如何查找网站正在使用的WordPress主题。 您可能还想查看我们最想要的WordPress技巧,窍门和hack的最终列表。

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.

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

翻译自: https://www.wpbeginner.com/wp-themes/how-to-find-which-wordpress-theme-a-site-is-using/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值