开发者 | tychay |
---|---|
更新时间 | 2015年5月14日 06:31 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.1.1 |
/wp-content/plugins/
. Then just visit your
admin area and activate the plugin. That's it!
See Also: "Installing Plugins" article on the WP Codex
Using the plugin
If you have the capability to install themes in your admin, then the themes menu
will have a new submenu called "Child Theme". Clicking on this gives you a form
that will allow you to create a child theme based on the current active theme.You can wait for the theme to get updated and have it break it, or you can:
Select
and make sure you are editing the file style.css
(select on the right).style.css
).I didn't think that's possible, but if so, I want to fix it! First, check what really happened. Is your admin console broken, is the theme broken (go to a new window and check your blog). If a theme fails to work and for some reason I didn't catch that error, WordPress should restore the previous theme (or whatever the default theme is) so your actual blog should be okay and recoverable. If for some reason it didn't default to the right theme, go into the Appearance menu and re-enable the parent theme. Then go to the support page, describe what happened (screenshots help too) and anything else and we'll try our best to help you.
I really need to update the screenshot. It's still there, but the location has changed as WordPress has been upgraded.
Appearance
tabMaking grandchildren of themes is non-trivial, so I disabled the form if it is already a child theme. Instead I offer the ability to repair the Child theme or copy template files from the parent into the child for editing.
Yes. The main purpose of the plugin is fulfilled. Congratulations! (Personally, I'd disable it, instead of delete it.) Having said that, there are some things that this plugin help with after your child theme's birth. Think of it as a parenting guide for your new child theme.
Appearance > Child Theme
to
get to these functions.
WordPress changed the recommended way of handling parent references in child themes. If this plugin detects your child theme was done in the old style, it shows this button. Clicking on it will make the plugin attempt a repair into the new style.
The most likely scenario is your WordPress site_url
isn't publicly
accessible from the web.
You have an old version of this plugin, please update to the latest one. I wrote this plugin back during a talk at WordCamp SF 2011 about CSS Themeing in order to help the person sitting next to me. I just didn't get to some things… for years. Sorry about that! The debugging code didn't affect any behavior — it was a sign of me being lazy and not realizing that the plugin would have tens of thousands of avid users!
First of all, is the blog accessible from the public Internet? If not, then that is the problem. But sometimes, even then, mshots seems a bit on the slow side. The plugin uses WordPress.com’s mShots service. You know, I worked at Automattic for years on WordPress.com and I still haven't quite figured out mShots. Eventually I've gotten the animated loading GIF to be replaced by a real retina-ready JPEG screenshot of my blog homepage. Trust me, when it works, it works great! But the experience may be a little like trying to get a vending machine to accept a crumpled dollar bill — Americans know what I mean. Suffice it to say that you might have to hit reload a couple times, or just fiddle around a bit.
What? People have forked my idea because I left Automattic for Wikimedia three years ago? This means war! Other plugins, you're going down! Steel yourself for the pent-up aggression of a pointy-haired boss being kept away from a programming console for years. As to why this plugin is the best? OCCT is Coke Classic to every other plugin's New Coke. Experience the original plugin taste your parents knew and loved! Plus, I have four-year old screenshots on my theme page, a way cooler plugin icon, and a baby picture of me and my brother on the banner. Also, this plugin strikes the right balance of features, is free (no "pro" version and not even a PayPal link), and (now that I've figured out how to admin the plugin page), I've been adding volunteers to support it. Even if I sucked into the vortex of middle management again (isn't going to happen, that s--t is EVIL) this plugin will live forever in the hearts and minds of bloggers everywhere! Which reminds me, if you want to help out, we're cool with that. Like WordPress itself, this is a volunteer endeavor. Contact us in the support pages and we'll hook you up!
style.css
file