Child Themes
Child Themes
Here's when you need a child theme, and when you don't.
What a child theme is
A child theme sits alongside your main theme and keeps your own code changes safe. That way you can update the main theme without losing them.
Do I need one?
For most sites, no.
You don't need a child theme for any of these:
- changing colours, fonts or the logo
- switching or editing designs
- using the Site Generator
- building pages in Elementor
- anything you set up on the theme's own admin screens
All of that is saved in your database, so theme updates never touch it.
You do need one if you're editing the theme's PHP, or adding your own functions and hooks.
Please don't edit files inside the theme folder itself, because the next update will replace them. Use a child theme instead, and your changes stay safe.
Custom CSS without a child theme
For a few style tweaks, you don't need a child theme either. Use the CSS box in Design → Custom code. It's saved in your database, so updates never touch it.
It's worth moving to a child theme once your CSS grows big enough that you'd like to keep it in version control.
Setting one up
Child themes are a standard WordPress feature, not a PremiumPress one, so the official WordPress guide is the best place to start:
developer.wordpress.org — Child Themes
There are two things to know for PremiumPress:
- Set
Template:in your child theme'sstyle.cssto the theme folder name of your product, exactly as it appears inwp-content/themes/. - Activate the child theme after you've finished setup on the main theme. Your setup wizard, licence key and design choice all carry over.
PremiumPress also needs two extra lines in a child theme that most themes don't. Copying the theme's page templates into a child theme won't change those pages. Our developer guide has a ready-to-use child theme and explains both.