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 trialVitalijus Samsonovas
Courses Plus Student 253 PointsDo i have to create a child theme ?
Hello,
I'd like to ask to is it necessary to create a child theme when using a custom template not from wordpress.org webpage. Let's say I've downloaded some template from the web and installed it into my themes. Then wordpress recognized it (f.e. woothemes are associated with wp), but will it automatically update it later or will it ask me for a permission to do this ? Is this child mode is sort of a backup or a necessity ? I haven't really caught the idea.
Thank You
3 Answers
Zac Gordon
Treehouse Guest TeacherIt is best to build a child theme.
The exceptions are:
- You know you will never need to update the theme and no one will accidentally update it
- You build the theme from scratch
The main idea is that if you edit a theme and then it get's update it will overwrite all of your work. With a child theme you can update the parent theme without breaking your code.
Vitalijus Samsonovas
Courses Plus Student 253 PointsThank You both ! I guess I'll have to use it.
Melanie Day
5,540 PointsHello Vitalijus,
Child themes are recommended to customise, adapt, and build on top of an original theme. There could be an up-date to the master theme later on down the line to enhance features or up-date something that might have had issues etc. If you work directly on customising the files from the master theme folder rather than creating a child theme with your customised files, then you would loose your work when up-dating the theme. Of course WP still asks you first before you up-date a theme, so if you don't choose not to up-date then you will not loose your work.
I think it is best practise to use child themes so you can keep the master theme up-dated. It also helps that if you are working in a child theme and make a mistake, you can refer back to the master theme to try to fix it or get things working again. If you are working on the master theme then there is nothing to easily refer back to.
I hope this helps.