[WordPress] 外掛分享: Child Themes Helper

前言介紹

  • 這款 WordPress 外掛「Child Themes Helper」是 2018-08-22 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2023-09-13,距離現在已有 598 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6.31 以上。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

paulswarthout |

外掛標籤

child | theme | child theme | child themes | child themes helper |

內容簡介

es, activating the new version of the plugin might cause an error. If that happens, deactivate the plugin, delete it, and then reinstall it from the WordPress plugins repository.

More Information
For more information on using the Child Themes Helper plugin, please visit the plugin's website.

這是一個針對撰寫或修改 PHP 代碼開發子佈景主題的開發者所設計的子佈景主題助手工具。先前版本的 Child Themes Helper 需要修改的子佈景主題為啟用中的佈景主題,但現在已不再需要。但是,在選項標籤中仍然需要將一個子佈景主題設為「啟用主題」,但不需要是啟用中的佈景主題。
該插件的主要功能是將父佈景主題(也稱為範本主題)中的文件複製到子佈景主題中。在複製期間,父佈景主題中的文件夾路徑都會在子佈景主題中複製。
從 Child Themes Helper 版本 2.1 開始,你現在可以編輯你的子佈景主題文件並保存更改。你還可以「編輯」父佈景主題文件,但它們被標記為只讀,並且你將無法保存所做的任何更改。這不是編輯文件的主要方法,而是一個快速更改或查看文件內容的方法。
該插件還可以刪除不再需要的子佈景主題中的任何文件或文件夾。如果某個文件或文件夾的刪除導致文件夾變為空,該文件夾也將被刪除。
當子佈景主題文件與其父佈景主題的對應文件不同時,Child Themes Helper 插件會提示用戶。如果文件不相同,則在允許複製父佈景主題文件或刪除子佈景主題文件之前,該插件將提示用戶。
Child Themes Helper 插件的主要功能需要子佈景主題的存在。如果尚未建立子佈景主題,該插件可以幫助你創建網站上當前安裝的任何主題(而不是其他子佈景主題)的子佈景主題。
建立子佈景主題並不會為你的新主題在 WordPress 主題頁面上創建一個圖形。Child Themes Helper 插件可以為你的子佈景主題創建一個圖形。你可以自由選擇該圖形的前景色和背景色,并選擇多達幾十種 Google 字體中的任何一種。如果你想使用其他字體,只需將 .ttf 文件複製到 Child Themes Helper 插件的 assets/fonts 文件夾中。下次你打開選項頁面時,新下載的字體將與樣本字符串一起顯示。
如果你從 Child Themes Helper 2.0 之前的版本升級,可能會遇到無法安裝升級版本的問題。最常見的問題是插件升級失敗並在插件頁面頂部顯示一條訊息。WordPress 禮貌地停用 Child Themes Helper 插件。如果你遇到這個問題,解決方法是:如果尚未停用該插件,請停用該插件。刪除該插件。然後直接從 WordPress 插件庫重新安裝 Child Themes Helper。
有關如何使用 Child Themes Helper 插件的更多資訊,請造訪該插件的網站。

原文外掛簡介

The Child Themes Helper is a tool….
…developed for those child theme developers who write or modify PHP code in the development of their child themes. Previous versions of the Child Themes Helper required the child theme being modified be the activated theme. That is no longer the case. However, you will still need to set a child theme to be an “Active Theme” on the Options tab, but it does not have to be the activated theme.

Copy files from Parent Theme to Child Theme
The primary purpose of the Child Themes Helper plugin is to copy files from a parent theme (also called the template theme) to a child theme. The folder path in the parent theme is duplicated in the child theme during the copy.

Edit Child Theme Files
Starting with the Child Themes Helper version 2.1, you can now edit your child theme files and save the changes. You can also “edit” your parent theme files, but they are marked read-only and you will not be able to save any changes that you make.
This is not meant to be the primary method of editing your files, but rather a way to make a quick change or to peer inside of a file without having to go elsewhere to make a quick change.

Remove files from the Child Theme
The Child Themes Helper plugin will also remove any files that you no longer want in the child theme. Any folders that are made empty by the removal of a file or folder, will also be removed.

Prompt before removal
The Child Themes Helper plugin will detect when a child theme file is different from its parent theme counterpart. If the files are not identical, the user will be prompted before allowing a parent theme file to be copied over an existing child theme file, or before allowing a child theme file to be removed.

Create a child theme
The primary functionality of the Child Themes Helper plugin requires the existence of a child theme. If a child theme has not already been created, this plugin will help you to create a child theme of any of the currently installed themes (not other child themes) on the website.

Generate a temporary graphic for the Themes page
Creating a child theme does not create a graphic for your new theme on the WordPress themes page. The Child Themes Helper plugin can create a graphic for your child theme. You’re free to select the foreground and background colors for that graphic and choose from up to a couple of dozen Google Fonts. If you would like a different font, you only need to copy the .ttf file into the Child Themes Helper plugin’s assets/fonts folder. The next time you open the Options page, the newly downloaded font will be displayed with a sample string.

Notes

Troubleshooting Installation Issues
If you are upgrading the Child Themes Helper from a version prior to version 2.0, you might have problems installing the upgrade.
The most frequent problem is that the upgrade fails and displays a nasty message at the top of the plugins page. WordPress then politely deactivates the Child Themes Helper plugin.
If you experience this problem, the solution is to: deactivate the plugin if it isn’t already deactivated. Delete the plugin. And then reinstall the Child Themes Helper directly from the WordPress plugins repository.
New with Child Themes Helper v2.0, the primary folder name (“~/plugins/pasChildThemes) and the primary file name (pasChildThemes.php) were changed to (~/plugins/child-themes-helper) and (child-themes-helper.php) to make the plugin match the WordPress assigned slug.
Under certain circumstances, probably due to either browser caching or website caching, this causes the upgrade to fail.

PHP Developer Tool
The Child Themes Helper is meant as a PHP developer’s tool to help the WordPress PHP developer make direct changes to a child theme’s PHP code. It is NOT a GUI, drag -n- drop tool to help non-developers build a child theme.

Child Themes Helper on GitHub
The GitHub repository for this plugin can be found here. Stable versions are usually found on the WordPress SVN repository. Intermediate versions are often found on GitHub.

Child Themes Helper access
The Child Themes Helper is accessed from the WordPress dashboard under the heading “Child Themes Helper”. The menu item may be found immediately below the Appearance Dashboard menu item.

Platform Support
The Child Themes Helper was developed on Microsoft IIS 10 and tested on both Windows’ and Linux -based web servers.

If you like the Child Themes Helper plugin, please consider writing a review here. Thank you.

Development versions
Versions 2.2.1, 2.1, 1.2 are available for download and install.

Screenshot
The temporary graphic is referred to as the ScreenShot because the filename is “screenshot.png” and is located in the root folder of your theme. The filename and the location are defined by the WordPress core and cannot be changed by this (or any) plugin.
Your browser will cache the screenshot file whenever possible. If you modify the ScreenShot graphic and you do not see any changes when you generate a new one, then you will need to clear your browser’s image and file cache.
If you generate a screenshot graphic and you only see the background (i.e., no words), just generate the screenshot again. This happens when the selected font does not exist in the assets/fonts folder of the Child Themes Helper plugin. If you are updating from version 1.0, you will see this happen the first time that you generate a screenshot since the original fonts were deleted and replaced by Google Fonts.
Most developers will replace this generated screenshot file with a graphic of their own. This feature is meant to provide a temporary graphic that quickly and easily identifies the child theme name and its parent theme.
In a future release, there will be a lock feature on the options page to prevent accidental overwrites of the screenshot file. Also, in a future release, there will be the ability to select an existing graphic and crop it as necessary, instead of generating one.

Known Bug
Although the Child Themes Helper plugin is mostly responsive, the Edit File functionality doesn’t work very well on small screens. But does anybody actually modify themes on smartphones and tablets? (Please say ‘No’).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Child Themes Helper」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.2 | 2.2 | 2.1.1 |

延伸相關外掛(你可能也想知道)

  • Kirki Customizer Framework 》 , 新增 -現在可使用 Kirki PRO , Kirki讓佈景主題開發者更快速、更輕鬆建立佈景主題。, Kirki 提供超過 30 個自訂控制,範圍從簡單的滑桿到具有 Google ...。
  • Child Theme Configurator 》res and options to help you take complete control of your WordPress site's visual appearance. With PRO, you can handle any plugin's CSS styles, pre...。
  • Easy Theme and Plugin Upgrades 》WordPress 具有透過提供壓縮檔案安裝主題和外掛的內置功能。不幸的是,您無法使用相同的過程升級主題或外掛。相反,當試圖使用壓縮檔案升級時,WordPress 會...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • All In One Favicon 》查看最新的WordPress交易以優化您的網站。, All In One Favicon為您的網站和管理頁面添加favicon。, 您可以使用您已經上傳的favicon或使用內置的上傳機制將fa...。
  • Theme Editor 》主題編輯器 (Theme Editor) 允許您編輯主題文件、建立資料夾、上傳檔案,以及在主題和外掛中移除任何檔案和資料夾。您可以直接自訂主題和外掛。, 升級至專業...。
  • Download Plugins and Themes in ZIP from Dashboard 》在儀表板下載外掛和佈景主題外掛可讓您直接從管理儀表板下載已安裝的外掛和佈景主題 ZIP 檔案而無需使用 FTP。, 外掛中沒有必須的設置 - 安裝後,所有以下 Do...。
  • Cryout Serious Theme Settings 》這個外掛是為了與我們的 Nirvana、Tempera、Parabola 和 Mantra 主題互相運作,並在目前的 WordPress 版本上啟用其進階設定頁面。, 相容性, 無論 WordPress ...。
  • WP Updates Notifier 》這個外掛程式會監控你的 WordPress 安裝,並會在核心、外掛程式和佈景主題更新時發送電子郵件通知你。如果你不經常登入 WordPress 管理員,或支援客戶的網站...。
  • Disable auto-update Email Notifications 》自 WordPress 5.5 起,若您已啟用外掛或佈景主題自動更新功能,當外掛或佈景主題自動更新成功或失敗時,您將會收到一封電子郵件通知。, 如果你管理多個網站,...。
  • WP Child Theme Generator 》WP子佈景主題產生器是一個非常簡單易用的外掛,可用於為WordPress CMS支援的任何佈景主題創建子佈景主題。使用多種選項創建子佈景主題,您可以輕鬆地創建和自...。
  • Multi Device Switcher 》Multi Device Switcher外掛允許您為設備(智能手機、平板電腦、手機、遊戲和自定義)設置單獨的佈景主題。, 此外掛可以偵測到使用者代理(UserAgent)是否正在...。
  • Multiple Themes 》重要提示:支援服務已移至 ZATZLabs 網站,不再於 WordPress.org 論壇提供。如需開發者迅速回覆,請提交請求單。, 此外掛設定提供多種選擇方式,可讓您選擇要...。
  • Disable All WordPress Updates 》這個外掛可以完全停用 WordPress 的主題、外掛和核心更新檢查系統。該插件防止 WordPress 檢查更新,包括 cronjobs,並防止顯示任何通知訊息。, 很重要的是,...。
  • WP-LESS 》LESS 是一種基於 CSS 的樣板語言。它提供了許多增強功能,以加速開發並使維護更容易。, 主題開發人員甚至可以捆綁該外掛而不用擔心衝突:只需包含特殊的 boot...。

文章
Filter
Apply Filters
Mastodon