Show Current Template

外掛說明

這個 WordPress 外掛能在工具列顯示目前使用的範本檔案名稱、使用中的佈景主題名稱,以及佈景主題包含的範本檔案名稱。如果這個外掛對網站有幫助,請考慮贊助外掛開發工作! 😉

外掛開發發想及特別致謝:

螢幕擷圖

  • 顯示目前的範本檔案

安裝方式

自動安裝

  1. 在 WordPress 管理後台中,前往 [外掛] 頁面,然後點擊 [安裝外掛]。
  2. 搜尋「Show Current Template」。
  3. Show Current Template 外掛應該會是第一筆搜尋及果,然後點擊 [安裝]。

手動安裝

  1. 將外掛壓縮檔解壓縮後,將包含所有檔案的外掛資料夾上傳至 /wp-content/plugins/ 目錄。
  2. 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。

常見問題集

這個外掛是否能與區塊佈景主題搭配使用?

不能。網站使用區塊佈景主題時,這個外掛不會發揮作用,並且會顯示相關提示訊息。

沒有顯示工具列

請在個人資料頁面啟用檢視網站時顯示工具列的功能。
請前往 WordPress 網站管理後台→[使用者]→[個人資料] 進行設定。

工具列上看不到目前使用的範本的檔案名稱

請以「網站管理員」身分登入,其他使用者角色如「編輯」,無法檢視範本檔案名稱。如果 WordPress 網站是多站網路的子網站,僅有「多站網路管理員」才能檢視範本檔案名稱。

外掛無法如預期般執行

請嘗試以下步驟:

  • 啟用 Twenty 系列預設佈景主題。

執行上述步驟後,外掛是否已能正確執行?如果能正確執行,代表之前使用的佈景主題與這個外掛有相容性問題,請通知開發者那個佈景主題的名稱及取得方式。

  • 停用這個外掛之外的全部外掛。

執行上述步驟後,外掛是否已能正確執行?如果能正確執行,代表之前使用的其中一個外掛與這個外掛有相容性問題,請通知開發者相關外掛的名稱及取得方式。

使用者評論

2021 年 8 月 15 日
Amazing plugin! Does exactly what it says, which is so useful for trying to work out which php file needs to be tweaked.
2021 年 6 月 26 日 1 則留言
Does what it says on the box. Works with no glitches. thanks.
閱讀全部 68 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Show Current Template〉的開發相關工作。

參與者

〈Show Current Template〉外掛目前已有 16 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Show Current Template〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.5.2

  • Update required WordPress version to 5.9. Special thanks to @dmchale for reporting the issue!

0.5.1

  • Delete unnecessary files.

0.5.0

  • Display a message that this plugin is useless when using block themes.
  • Remove stray language file. Special thanks to @szepeviktor for reporting the issue!

0.4.6

  • Fix JS Error when No Admin Bar. Special thanks to @taupecat for reporting the issue!

0.4.5

  • Fix showing included files at bottom when your WordPress site is multisite and you are a normal admin (not super admin). Special thanks to @dmchale for reporting the issue!

0.4.4

  • Fix not showing included files on Windows local. Special thanks to @lindt01 for helping me identify the cause!

0.4.3

  • Fix the JavaScript error reported by @flexer. Special thanks to @dmchale for the fix!

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