Show Current Template

Mô tả

A WordPress plugin which shows the current template file name, the current theme name and included template files’ name in the tool bar. If you like this plugin, you can buy me a coffee! 😉

Inspired by (and big thanks to):

  • https://gist.github.com/gatespace/4482529
  • https://wordpress.org/plugins/reveal-template/

Ảnh màn hình

  • Shows the current template file.

Cài đặt

The Good Way

  1. In your WordPress Admin, go to the Add New Plugins page
  2. Search for: Show Current Template
  3. Show Current Template should be the first result. Click the Install link.

The Old Way

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Hỏi đáp

I don’t see the toolbar.

Is the Toolbar (Show Toolbar when viewing site) option in your profile page is checked?
You can find your profile page is in your WordPress admin -> Users -> Profile.

I don’t see the current template file name in the toolbar.

Do you logged in as “Administrator”? Other role users like “Editor” can’t see the file name.

Đánh giá

27 Tháng Mười Hai, 2020
I love this plugin! It works very well and shows the WP Template file being used to render a particular webpage. My only gripe is that it is poorly documented. I had almost given up but this article by @lukefive which tells you how to enable the admin bar on the viewed page helped me get it working. Thank you.
17 Tháng Mười Một, 2020
Very useful for developers. How about showing parts that are coming from get_template_part() as well? Thank you!
1 Tháng Mười, 2020
Its functionality is basic but very useful, it is a classic in my installations to develop more easily and with a lot of information
22 Tháng Sáu, 2020
Why are updates being issued that don't actually change anything other than the version number, like this? "No functional change at all except the version number in the plugin php file and donation url." This just wastes all your user's time doing pointless plugin updates to our sites. The last three updates were the same. Apart from this, the plugin works fine and is a very useful development tool.
Đọc tất cả 61 đánh giá

Người đóng góp & Lập trình viên

“Show Current Template” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Show Current Template” đã được dịch qua 10 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Show Current Template” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

0.4.2

  • Fix showing included files at bottom when the logged in user’s roles other than admin.

0.4.1

  • Fix showing included files at bottom when visitor visits the site. This issue was reported by @tsato. Thank you very much!

0.4.0

  • Fix not showing all included files with WordPress version 5.4 or greater.
  • Clean up some code.

0.3.4

  • No functional change at all except the version number in the plugin php file and donation url.

0.3.3

  • No functional change at all except the version number in the plugin php file and donation url.

0.3.2

  • No change at all except the version number in the plugin php file.

0.3.1

  • Just add a donate link.

0.3.0

  • UPDATED: Make the file list scrollable.
  • UPDATED: Change css to sass.

0.2.2

  • Oops, too short.

0.2.1

  • UPDATED: Make the height of included files names shorter

0.1.8

  • UPDATED: update for 3.8.

0.1.6

  • FIXED: update for 3.8.

0.1.5

  • FIXED: Fixed the issue of not displaying the parent theme name when using a child theme.

0.1.4

  • UPDATED: Make not to show the current file in the included files list.

0.1.3

  • FIXED: Fixed some notices.

0.1.2

  • FIXED: Fixed potential conflict text domain (https://github.com/tekapo/show-current-template/pull/1).
    Thanks to @wokamoto san.

0.1.1

  • UPDATED: readme.txt

0.1.0

  • Initial release