外掛說明
這個 WordPress 外掛能在工具列顯示目前使用的範本檔案名稱、使用中的佈景主題名稱,以及佈景主題包含的範本檔案名稱。如果這個外掛對網站有幫助,請考慮贊助外掛開發工作! 😉
外掛開發發想及特別致謝:
安裝方式
自動安裝
- 在 WordPress 管理後台中,前往 [外掛] 頁面,然後點擊 [安裝外掛]。
- 搜尋「Show Current Template」。
- Show Current Template 外掛應該會是第一筆搜尋及果,然後點擊 [安裝]。
手動安裝
- 將外掛壓縮檔解壓縮後,將包含所有檔案的外掛資料夾上傳至
/wp-content/plugins/
目錄。 - 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。
常見問題集
-
這個外掛是否能與區塊佈景主題搭配使用?
-
不能。網站使用區塊佈景主題時,這個外掛不會發揮作用,並且會顯示相關提示訊息。
-
沒有顯示工具列
-
請在個人資料頁面啟用檢視網站時顯示工具列的功能。
請前往 WordPress 網站管理後台→[使用者]→[個人資料] 進行設定。 -
工具列上看不到目前使用的範本的檔案名稱
-
請以「網站管理員」身分登入,其他使用者角色如「編輯」,無法檢視範本檔案名稱。如果 WordPress 網站是多站網路的子網站,僅有「多站網路管理員」才能檢視範本檔案名稱。
-
外掛無法如預期般執行
-
請嘗試以下步驟:
- 啟用 Twenty 系列預設佈景主題。
執行上述步驟後,外掛是否已能正確執行?如果能正確執行,代表之前使用的佈景主題與這個外掛有相容性問題,請通知開發者那個佈景主題的名稱及取得方式。
- 停用這個外掛之外的全部外掛。
執行上述步驟後,外掛是否已能正確執行?如果能正確執行,代表之前使用的其中一個外掛與這個外掛有相容性問題,請通知開發者相關外掛的名稱及取得方式。
使用者評論
參與者及開發者
變更記錄
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