Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKatherine Elsken
2,330 PointsAdding custom Stylesheets in Genesis Child themes
I have some extra style sheets that I'd like to incorporate into my child theme. but when I use the enqueue style method, the style sheet's url's are comming out wrong in the source. instead of the path being "themes/child-theme/style.css" it comes out with "themes/parent-theme/style.css"
What do I do???
1 Answer
Dustin Matlock
33,856 PointsThey say you shouldn't need to because updates are always to the framework and not the child theme. (Sort of why child themes were implemented.) However, here are a couple tutorials if you still prefer doing it that way, and apparently there are a few reasons for it.
Sarah Jee Watson
UX Design Techdegree Graduate 28,197 PointsSarah Jee Watson
UX Design Techdegree Graduate 28,197 PointsSo it's good to just edit style.css in child theme, as technically only the framework will ever be updated?
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsI should've have worded that differently, but yes, the framework would update more often. Most times when a child theme updates, there are only minor changes to fix small bugs or add features. If you add your custom CSS to the end of the file, you could simply add it again after an update since the cascade will always render what's last in your CSS file.