Terry Chay
Forum Replies Created
-
Forum: Plugins
In reply to: [One-Click Child Theme] If "Repair Child Theme" is breaking your site.To (reversion #1) above that says
Go into child theme functions.php and undo the changes it made (probably the whole file) you can replace it with a file with just <?php in the first line and nothing below. Delete the stuff that talks about wp_enqueue_style and such like that
What I mean is:
* If
functions.php
is exactly 9 lines long, replace it with an empty file with just 1 line with<?php
in it.
* Iffunctions.php
is more than that, comment out the first 9 lines which will have a reference totheme_enqueue_styles
Forum: Reviews
In reply to: [One-Click Child Theme] I think It'll be great But…?? not sure why this happenned as the child theme creates a nearly empty functions.php and the current version of WordPress loads the parent theme’s function.php in a cascade.
What version of WordPress were you using? Maybe I can add a patch to child theme in the old style when’s he WordPress version is old (unfortunately the code doesn’t mention when they changed the behavior)
Forum: Plugins
In reply to: [One-Click Child Theme] RTL stylesheet1. It is recommended by wordpress that all themes have an rtl.css. The plugin uses twentyfifteen’s rtl style sheet if there is none in the parent theme.
2. Hmmm I’ll update the plugin to not use the wrong rtl.css if one is not available, but simply use a dummy file with the body tag adjusted, clearly I was in error.
Forum: Plugins
In reply to: [One-Click Child Theme] Erasing current website when adding in custom themeI’ve been trying to track this bug down. Do you have any description of what you did plus screenshots?
For instance what install or theme? Theoretically this shouldn’t happen because the plugin will not create anything that already exists and is restrivted to the themes directory in its operations, but I have a feeling that some hosting environments, installs, and or themeS violate coding standards and this is causing an issue.
Forum: Plugins
In reply to: [One-Click Child Theme] Edit PHP@sanbenito: Cool! I’m just glad it fixed your problem! Happy Blogging!
Forum: Reviews
In reply to: [One-Click Child Theme] Does the Job!Yes, I finally fixed this in version 1.5. ??
I really regret not spending more than an hour (at WordCamp, while the presentation was going on) writing this plugin four years ago.
Forum: Plugins
In reply to: [One-Click Child Theme] Import the design directoryOkay I looked into it because I didn’t quite understand what you were talking about.
What One-Click Child Theme allows you to do is make a child of a theme (in this case Spacious). The “design directory” you are talking about is probably the “Theme Options” which is a property of the parent theme. It should be there. (I installed Spacious and child theme’d it successfully in the 1.5 version of the plugin.)
However in the older version of One-Click Child Theme, I didn’t create a functions.php file because the behavior of WordPress themes was different when I wrote it 4 years ago. It could be you couldn’t access the Theme Option because of this missing file. If this is the case, update to the latest plugin and go to
Appearance > One-Click Child Theme
and click on theRepair Child Theme
button (if it’s not there, it thinks everything is good). It should upgrade the child theme according to the modern rules and the Theme Options should work correctly.If, on the other hand, you want to change the Theme Options by hand, that would involve overriding functions in functions.php which is not an easy thing.
I hope this helps.
?? Someone marked this bug as resolved. Has this been fixed for you?
The “update theme” will only appear if the theme has the old style css include child theme mechanism (instead of the enqueue_* that is recommended).
TO be able to modify a template file in the parent theme (without editing the parent theme), go into the “One-Click Child Theme” tab in Appearance and select “footer.php” (it will only show if the parent has a footer) and click the duplicate button. It should then create the file which you can edit in the Appearance > Edit section.
Forum: Plugins
In reply to: [One-Click Child Theme] Same theme 2014 different resultsSounds like your copy of the parent theme (TwentyTwelve) is out of date. Try updating that theme in wp-admin. Doesn’t look like this plugin is related to that. ??
Forum: Plugins
In reply to: [One-Click Child Theme] CRASHED SITE _ DO NOT DOWNLOADCan you post a screenshot of the crash?
Also, you can restore the original theme by going into the Appearance menu and selecting the original theme. ??
Forum: Plugins
In reply to: [One-Click Child Theme] Edit PHPWith version 1.5, I added the ability to update old child themes to generate a functions.php file and do the new method of stylesheeet inclusion. Now if you want to add functions, it will create the file for you.
I also added the ability to copy templates from the parent theme for modification. ??
Forum: Reviews
In reply to: [One-Click Child Theme] GreatThe debugging code should be removed in 1.5. It should properly show updated messages.
Forum: Reviews
In reply to: [One-Click Child Theme] It obliterated my current formattingI’m trying to track this down.
Did you already have a theme name with the name you chose for your child? (I can add a check to prevent doing this).
What do you mean by “obliterate” Could you not load to the original theme? What files and directories got deleted?
Forum: Plugins
In reply to: [One-Click Child Theme] issue with renameYes, there may be a case where the parent theme directory was renamed and WordPress lost track of it. Make sure it it working or the references to the directory won’t work.
If you edit any of the files in a theme directly, those changes will be lost when you update the theme. (Exception is on WordPress.com which has their own “Custom CSS” plugin that doesn’t mess with the css of the theme file.
However, if you make changes inside the theme options (using Customize). Those changes do not get steamrollered when the theme is updated.
The idea of this plugin is to allow you to add to or modify a theme’s CSS without having the changes get steamrollered when the theme is updated. You simply install the plugin, activate the theme you want to modify, and then click “one click child theme” and fill out the form.
It creates a “child theme” and points your blog to that. The Child theme references the parent theme (which can be updated) and all your changes (to the css or functions.php) are kept in the child theme.
So this would solve the issue.
…
Of course if it’s not difficult to repeat, you can just directly edit the style.css of the parent theme and then after an update, edit it again, etc.