Community Forums › Forums › Archived Forums › General Discussion › Updating the Sample Child Theme.
- This topic has 4 replies, 2 voices, and was last updated 8 years, 4 months ago by George Ilidis.
-
AuthorPosts
-
December 4, 2015 at 3:38 am #172701George IlidisMember
Hello everyone,
I am using Genesis Sample Child Theme for over 2 years and everything is fine. However, I realised that there is a last update that brings some changes at the Sample Theme too. I've already updated Genesis Framework without affecting my website's design. What I see is that i am missing some new features added to the new version of the Sample theme, which i cannot update because i will lose my current CSS changes!
Genesis Sample is a child theme. What's the way to keep this child theme updated? A child theme for the child theme?!
For example, i am missing the Print Styles and the loading of some js files added at the new version of the Sample Theme. How can i update my old Sample theme to have all this new features? (and of course be able to get upcoming ones).
Thanks in advance!
December 4, 2015 at 9:30 am #172747PorterParticipantTo the best of my knowledge, the only changes were made in style.css, as I see nothing new in functions.php, and there are no additional files. I personally manually went through style.css and added what was missing (that I wanted), which didn't take too long. The structure is identical, so you'll see when something is new or changed. There were a few new sections (easy to just copy and paste), and a lot of areas added rm to sizes in addition to px.
December 4, 2015 at 10:37 am #172759George IlidisMemberThere are changes at the functions.php too, regarding accessibility for example. This may be the only one (?), but it's still a change.
Well, this is an option but obviously not the "correct" one. Any more official/professional way to keep the sample theme up to date? How often does the sample theme get updates?
December 4, 2015 at 10:44 am #172760PorterParticipantThere's just that one line:
//* Add Accessibility support add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links', 'rems' ) );
As for style.css, the top of the file has a table of contents that shows you where each section is, and everything is labeled quite nicely. Adding the new code should only take a few minutes. As for the minor changes (adding rm units everywhere), those aren't essential, and you can manually add them if you want.
I get what you mean that it's not ideal, but you can't (to the best of my knowledge) make a child theme of a child theme, so there's no clean way to update effortlessly. You could keep the style.css sheet as is, and externally load your own custom style sheet, but that seems messier than what's it worth, as I've only seen one update to the sample theme in well over a year.
December 4, 2015 at 11:16 am #172761George IlidisMemberFine. That's what I was planning to do but i thought that there should be an easier fix. Let's say that it's ok for an update every year!
Anyway, thanks for yout time and help man 🙂
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.