Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What’s the name of your Child Theme folder?
ChildTheme and within that is stylecss which is where I have put the document childcss.txt. I know they look odd names, sorry.
The stylesheet needs to be named exactly “style.css” and sit at the base of the child theme’s directory in the themes folder.
You also need this at the top of your child theme stylesheet (this is how WP knows it’s a child theme):
/*
Theme Name: Twenty Fourteen Child
Theme URI: http://example.com/twenty-fourteen-child/
Description: Twenty Fourteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfourteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fourteen-child
*/
/*import parent theme's styles*/
@import url("../twentyfourteen/style.css");
/* =Theme customization starts here (your styles)
-------------------------------------------------------------- */
I named it style.css and it appears at the base as you explained. Here’s what is in the stylesheet.
/*
theme Name: twenty thirteen child
theme URI: http://stuartist.com/twentythirteen/
description: twenty thirteen child theme
author: me
author uri: http://stuartist.com
Template: twentythirteen
Version: 1.0.0
*/
@import url(“../twentythirteen/style.css”);
/* =Theme customization starts here
————————————————————– */
However it is still not working.
It now says that the Template is missing. So something has changed. is missing?
Is your child theme’s folder in themes directly (wp-content/themes)?
Child theme’s folder should be outside the parent theme folder in themes directory.
Yes it is I think:
WP Content-themes-ChildTheme-style.css.
I am getting to the stage of frustration where I’m thinking of using a child theme plugin! Any suggestions? Or is this not recommended?
for one I don’t think you need to use a child theme plugin – that just sounds like a mess.
“template missing” means that the parent theme doesn’t exist, or that the index.php file isn’t there.
in the comment at the top of style.css (part between /* and */ ) make sure that it has the following:
* Template: twentythirteen
also make sure that twentythirteen is installed and located in wp-content/themes/twentythirteen and that all files are in tact.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Looks like a permission issue http://www.stuartist.com/wp-content/themes/ChildTheme/style.css/?ver=2013-07-18
Can you talk to your hosting providers about this
Hi, thank you everyone. It was a problem with my hosting. I now have a child theme. It is much appreciated, many thanks for all of your input.
After reading so much about problems people have sorting there child theme, perhaps they should go to their host first.