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

Child Themify

描述

Create child themes from any non-child theme with the click of a button.

This plugin is multisite compatible; if used on a multisite network, controls for creating child themes will be in the network admin instead of the regular site admin. Pick the parent theme from the dropdown and name name your new child theme. You can also change the author name and select files you want to copy from the parent to the new theme.

Click the button and you’re all set!

屏幕截图

  • No Parent Selected
  • Parent Selected
  • Advanced Fields

安装

  1. Upload the child-themify directory and its contents to the /wp-content/plugins/ directory (or your custom location if you manually changed the location).
  2. 通过WordPress的“插件”菜单激活插件
  3. You can now create a child theme of any non-child theme you have installed by going to the “Create Child Theme” page in the Appearance/Themes admin menu.

常见问题

Installation Instructions
  1. Upload the child-themify directory and its contents to the /wp-content/plugins/ directory (or your custom location if you manually changed the location).
  2. 通过WordPress的“插件”菜单激活插件
  3. You can now create a child theme of any non-child theme you have installed by going to the “Create Child Theme” page in the Appearance/Themes admin menu.
Why do you use @import instead of enqueueing the stylesheet?

I catch a lot of flack for not using the method recommended to theme developers for including stylesheets, so hopefully you one-star fanatics will see this first and reconsider.

This plugin is not creating themes for submission to the repo and it doesn’t have any control over the quality of the theme it’s extending. In order for this plugin to successfully enqueue the child theme AND parent theme’s style.css, the parent theme has to actually enqueue its own stylesheet (not a given by a long shot), it has to be done using get_template_directory_uri(), not get_stylesheet_directory_uri() (also not a given), and, in order for the child stylesheet to be enqueued after the parent’s (kind of important for a child theme), there has to be some kind of reliable naming convention for the enqueue ID in the parent theme (no such standard exists). On the other hand, @import just works. It’s the only available method that gets the child theme working in virtually all cases out of the box.

And if you really can’t bear the thought of using @import, just edit the files after creating the theme so that it no longer uses it. It’s your theme, you can do as you like with it.

How much does this plugin do?

This plugin only creates the theme for you. It doesn’t do anything to the database, it doesn’t do anything to your new child theme after you’ve created it. It only gives you buttons to create a child theme.

Where can I get some help?

I’d really prefer that you use Github’s issue tracker. The WordPress.org support forum for the plugin will work too, it will just take longer.

评价

2018年8月30日
Es excelente, hace lo que necesito rapidamente, me ayuda cuando no tengo acceso al ftp por alguna razon para crear el child theme
2018年1月30日
All I did was activate this nightmare, and my entire site shut down. I had to have my hosting company disable all my plugins to regain access. Don't touch it with a barge pole.
2017年12月9日
Works brilliantly and easy to use. Love the new feature of creating child files from parent. Top class!
阅读所有42条评价

贡献者及开发者

“Child Themify” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Child Themify”插件已被翻译至4种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Child Themify”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.0.0

  • Released: 2017-10-04
  • Completely rebuilt the interface
  • Added controls to modify the Theme Author value
  • Added controls to select theme files that should get copied into the new theme

1.2.0

  • Released: 2016-10-13
  • The plugin now creates a functions.php file in the new theme

1.1.2

  • Released: 2015-10-13
  • Fixed basename location when loading the textdomain
  • Added textdomain and domainpath headers to plugin file

1.1.1

  • Released: 2015-01-13
  • Added French translation from FR_lucien

1.1.0

  • Released: 2014-12-20
  • Thumbnail now gets copied when you create a child theme
  • Various other tweaks and security hardening

1.0.4

  • Released: 2014-09-15
  • Added support for WordPress 4.0

1.0.3

  • Released: 2014-04-15
  • Standardized theme action links shim. See https://github.com/johnpbloch/child-themify/issues/2 for more information
  • Maintenance, code cleanup, bug fixes

1.0.2

  • Released: 2014-01-13
  • Added support for WP 3.8

1.0.1

  • Released: 2013-01-18
  • Add a semicolon to the end of the @import line in the stylesheet. Props to Luis Alejandre (wpthemedetector.com) for finding and solving.

1.0

  • Released: 2012-12-31
  • Initial Release