Can I convert a modified Graphene parent theme to a Child theme?
August 22, 2013 at 10:43 am #7975
I have modified a standard Graphene theme, and would like to create a child theme from it, without having to redo everything. Is it possible to just create a child with the existing changes all done?
AnonymousAugust 23, 2013 at 8:07 am #39984
Haha… if it were only that easy.
What you will want to do is grab a program that allows you to compare files to see their differences. Then, download a fresh copy of the theme, and compare the files which you have modified.
Differences will be highlighted, and you can move those functions/declarations to the child theme.
That’s how I did it the first time… before I learned my lesson 😉August 24, 2013 at 5:44 am #39985
Can the Import/Export theme options do anything on this?
ie: export theme options from the original one, and import into a child theme?
Would this do any, or all of the changes ?
AnonymousAugust 24, 2013 at 6:14 am #39986
No. You are not understanding the functionality of the child theme.
In it’s most basic sense, the child theme is used for two purposes.
1. To modify css used in the themes stylesheet.
2. To hook into functions provided by both the theme and WordPress.
The child theme runs “alongside” the parent theme… not “instead of”. You can’t run just a child theme. The child theme runs in tandem with the parent theme.
Take a close look at the usage of a child theme from Graphene and WordPress.August 24, 2013 at 7:43 am #39987
“not understanding the functionality of the child theme”
I think that is a common problem – Children can never be understood. Themes or real 😉
But you are right.
What is confusing, is that if changes are made to the parent theme, before a child theme is created, why aren’t they automatically seen in the child theme?
Why does it need something so complex to get the child theme to look like the parent theme, when they are so integrated?AdminAugust 24, 2013 at 10:59 am #39988Quote:What is confusing, is that if changes are made to the parent theme, before a child theme is created, why aren’t they automatically seen in the child theme?
If all the changes you’ve done is via the theme’s options page, then those changes will be retained and applied when a child theme is used.
However, if you’ve changed any of the original Graphene theme’s files, those changes won’t be transferred over to the child theme. They’ll still be in effect though — until the next time you update the theme.August 24, 2013 at 12:34 pm #39989
OK. That makes sense. All the changes have been done via the options pages, I think, so should be retained in a new child theme.
I am beginning to follow the process now. The main theme and the child theme share the single “options” settings?
.AdminAugust 24, 2013 at 3:48 pm #39990
The main theme and the child theme share the single “options” settings?
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.