Title: Theme Inspector
Author: Melissa Cabral
Published: <strong>2015 年 12 月 11 日</strong>
Last modified: 2023 年 2 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/theme-inspector/assets/icon-256x256.png?rev=1305896)

# Theme Inspector

 作者：[Melissa Cabral](https://profiles.wordpress.org/melissa-cabral/)

[下载](https://downloads.wordpress.org/plugin/theme-inspector.zip)

 * [详情](https://cn.wordpress.org/plugins/theme-inspector/#description)
 * [评价](https://cn.wordpress.org/plugins/theme-inspector/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/theme-inspector/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/theme-inspector/#developers)

 [支持](https://wordpress.org/support/plugin/theme-inspector/)

## 描述

A simple, lightweight plugin that displays useful technical information on pages
and posts to aid in developing WordPress Classic themes. Provides quick access to
things that are sometimes hidden, like post/page ID, slug, taxonomy terms, and post
type slug. Theme Inspector tells you exactly what conditional tags are true on each
view, and what template file loaded on each page view.

 * Use In Conjunction with the [WP Template Hierarchy Document](https://docs.google.com/drawings/d/1hJ0MpHO3HKBT5KsTpGtc_gDYZ5pi-HyxNcRtmPBBULE).
 * Theme Inspector is only visible to logged in Administrators.
 * Appears on the right-side of the Toolbar (admin bar).

## 安装

 1. Simply unzip and upload to the wp-content/plugins’ directory.
 2. 通过WordPress的“插件”菜单激活插件
 3. There’s nothing to configure. Theme Inspector will automatically appear when you
    view your website as an Administrator. Look at the upper-right corner of the Toolbar(“
    Admin Bar”).
 4. Hover over “Theme Inspector” for a flyout-panel containing information about the
    page you are currently viewing.

## 常见问题

### I don’t see Theme Inspector! Where is it?

You must be logged in as an administrator, and viewing the Site (not the admin panel).
It will appear on the admin bar.

## 评价

![](https://secure.gravatar.com/avatar/dcfc9e725e033c628fb236b28b0a22a328d811b9e868f1533cc32e6d7bb2f770?
s=60&d=retro&r=g)

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-4319/)󠁿

 [webstpro](https://profiles.wordpress.org/webstpro/) 2025 年 3 月 1 日

Documentation says Theme Inspecor appears on right side when viewing web page as
Admin. It is the light blue color with no text so it is not obvious that you need
to click to use the theme builder.

![](https://secure.gravatar.com/avatar/3c3c21bc5966abfd53a3e5f5a4ae60c1af4c78401ebf8290d4bc9543a0a974d3?
s=60&d=retro&r=g)

### 󠀁[Looks Helpful, no RTL support](https://wordpress.org/support/topic/looks-helpful-no-rtl-support/)󠁿

 [ibanner](https://profiles.wordpress.org/ibanner/) 2021 年 2 月 16 日

This plugin looks like something I’ve been looking for, for quite some time. However
it seems it doesn’t play well with RTL sites. The popup with the info is aligned
to the right side of the admin bar button, with causes some of the info to disappear
out of view. I would be more than willing to reconsider my rating if this issue 
is solved.

![](https://secure.gravatar.com/avatar/9a67d815d751ab662aa64282b517a77a59502cfdcaba00fedd46774407294f7e?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-2102/)󠁿

 [milenfrom](https://profiles.wordpress.org/milenfrom/) 2019 年 12 月 11 日

Very useful

![](https://secure.gravatar.com/avatar/3f041de7d929068af3670b950234e109dc3002a2698eeec7db015b60a55db976?
s=60&d=retro&r=g)

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-6484/)󠁿

 [maxbrandl18](https://profiles.wordpress.org/maxbrandl18/) 2019 年 3 月 4 日

Awesome! Still works (with 4.9.8) Thx

![](https://secure.gravatar.com/avatar/7dd990e85851835a2878c5be96e2e8909b5456d04f6363969c7bad0444bb27de?
s=60&d=retro&r=g)

### 󠀁[Fantastic Tool!](https://wordpress.org/support/topic/fantastic-tool-67/)󠁿

 [chzumbrunnen](https://profiles.wordpress.org/chzumbrunnen/) 2018 年 9 月 18 日

Not only does it show the currently active template file (what some other plugins
do too), but it shows where in the template hierarchy it is. Therefor it’s very 
easy to know what template file to edit / replace in a child theme. Also it shows
the post type, post id, true conditions… It’s a fantastic developer tool and I highly
recommend it Too sad that this plugin isn’t that well known. It’s the best of it’s
kind in my humble opinion.

![](https://secure.gravatar.com/avatar/d7e2646e60ec66d75bd5bee340dabd1fd26cb38f91a27bd7bd610f16a0026d67?
s=60&d=retro&r=g)

### 󠀁[Thank you for such a helpful plugin](https://wordpress.org/support/topic/thank-you-for-such-a-helpful-plugin/)󠁿

 [wp-newbee](https://profiles.wordpress.org/wp-newbee/) 2017 年 9 月 19 日

Thank you for such a helpful plugin . It works beautifully and make the developer
much easier. Best, Azita

 [ 阅读所有11条评价 ](https://wordpress.org/support/plugin/theme-inspector/reviews/)

## 贡献者及开发者

「Theme Inspector」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Melissa Cabral ](https://profiles.wordpress.org/melissa-cabral/)

[帮助将「Theme Inspector」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/theme-inspector)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/theme-inspector/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/theme-inspector/)，或通过[RSS](https://plugins.trac.wordpress.org/log/theme-inspector/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/theme-inspector/)。

## 更新日志

#### 4.0.0

 * Added clearer warning when using an incompatible plugin or Block Theme

#### 3.0.6

 * Minor CSS changes for compatibility with RTL language settings

#### 3.0.4

 * Minor CSS changes for compatibility with twentynineteen

#### 3.0.3

 * Added support for WooCommerce templates

#### 3.0

 * Added the complete template hierarchy chain for the currently displayed page
 * minor CSS improvements

#### 2.0

 * Moved the display to the admin bar (toolbar) for consistency
 * Changed CSS styles to be more readable in all themes
 * Improved code structure and added Inspector functions

#### 1.0

 * Original Version – Theme Inspector displays all info at the bottom corner of 
   the screen

## 额外信息

 *  版本 **4.0.1**
 *  最后更新：**3 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  语言
 * [English (US)](https://wordpress.org/plugins/theme-inspector/)
 * 标签
 * [developer](https://cn.wordpress.org/plugins/tags/developer/)[inspector](https://cn.wordpress.org/plugins/tags/inspector/)
   [template](https://cn.wordpress.org/plugins/tags/template/)[theme](https://cn.wordpress.org/plugins/tags/theme/)
   [utility](https://cn.wordpress.org/plugins/tags/utility/)
 *  [高级视图](https://cn.wordpress.org/plugins/theme-inspector/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/theme-inspector/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/theme-inspector/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/theme-inspector/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/theme-inspector/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/theme-inspector/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/theme-inspector/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/theme-inspector/reviews/)

## 贡献者

 *   [ Melissa Cabral ](https://profiles.wordpress.org/melissa-cabral/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/theme-inspector/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/MelissaCSD)