Hi there,
I recently created a child theme for a website I’m creating that uses the SiteOrigin North Theme. After creating the child theme, I pasted in my new style sheet CSS into the ‘Editor’. The website looks as it should; however, I’m now getting an error message the says…
‘This theme is broken. Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.’
This is my first time creating child theme, so I’m not sure how to address this issue. How should I correct this error?
The website this relates to is derekscott.ca
Thank you,
Alison
I found the solution…I replaced the upper portion of the style.css sheet with this instead:
/*
Theme Name: North Child
Author: SiteOrigin
Author URI: https://siteorigin.com/
Description: North Child Theme
Version: 1.0.0
Template: siteorigin-north
Text Domain: siteorigin-north
Domain Path: /languages/
*/
/* =Theme customization starts here
Is this correct? It fixed the error message, but should the version still be 1.0.0.?
Thanks!
Alison
Hi Alison,
The child theme header you used looks fine, but the final line will cause you issues if you decide to add CSS to this stylesheet as it’s not a complete comment. You need to close it by putting */ at the end of the line.
For more information about child themes please refer to this page.