Can I convert a modified Graphene parent theme to a Child theme?

  • ABCDiamond

    #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?

    Thanks

    Anonymous

    #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 😉

    ABCDiamond

    #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 ?

    Anonymous

    #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.

    ABCDiamond

    #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?

    Admin

    Syahir Hakim

    #39988
    Quote:
    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.

    ABCDiamond

    #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?

    Thanks

    .

    Admin

    Syahir Hakim

    #39990

    The main theme and the child theme share the single “options” settings?

    That’s correct.

Viewing 8 posts - 1 through 8 (of 8 total)

  • You must be logged in to reply to this topic.