Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using a Genesis child theme that I would like to make some custom changes to it, but would like to be able to update it when a new version comes out without loosing my edits. I am familiar with the parent-child practice, but since my theme is already a child of genesis what is the best way to approach that?

First, I tried to make a parent-child-child theme, but not only some of the markup is different, but I also lost all my widgets sections from the parent-child theme.
-created a new directory with a style.css and have this code:

/*
Theme Name: parent-child-child
Template: genesis
*/
@import url("../parent-child/style.css");)


Next, I copied all files(functions.php, Template files, other...I only kept the style.css from my first try) from my parent-child theme to my parent-child-child theme and it worked, but I am worried that the code from functions.php is going to be loaded twice and therefor slow down my website or even break it down at some point.

What would be the right way of dealing with this problem?
Thanks,
Radi

share|improve this question

1 Answer 1

up vote 0 down vote accepted

From my understanding, there's no grand child theme in current version of WordPress. It's not supported at the moment, but I heard that WordPress will support in future version.

So, if you make change directly to your child theme and upgrade, all your changes will be gone. To keep your changes, you can do like this:

  • duplicate chile theme. Duplicate everything, not only functions.php file.
  • change the new child theme name (and slug) to a different one. That will make WordPress see it like a total different theme.
  • make change to new child theme

Whenever your original child theme is updated, you should look at its changlog and scan files for changes and apply them to your new child theme.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.