Child theme not using parent theme template
-
So, I was using the Twenty Fourteen theme … but I wanted to customize it. So, I created a child theme.
- twentyfourteen/
- twentyfourteen-child/
I setup the twentyfourteen-child/style.css to be… (note: this is the ONLY file in the child directory)
/* Theme Name: Twenty Fourteen Child Template: twentyfourteen Description: Child theme for modifying twenty fourteen @import url("../twentyfourteen/style.css"); */ /* =Theme customization starts here -------------------------------------------------------------- */ .single .post-thumbnail img { display: none; } /*hides featured image in single post view*/ .search .post-thumbnail img { display: none; } /*hides featured image in search result view*/ .category .post-thumbnail img { display: none; } /*hides featured image in category view*/
Now, I went into my dashboard. I saw that my Twenty Fourteen theme was activated. So, I ACTIVATED the new child theme (it was listed there, so I know the path was correct, and the parent directory was correct). When I went to view my site, all I saw was a bare-minimum site with NO styles. It was like the site ignored the entire parent theme templates, and just threw up the content with no styles. It’s as if it was ONLY using the child theme, and not referring to the parent theme at all.
Does anyone know where I went wrong??? Please help. Thanks.
- The topic ‘Child theme not using parent theme template’ is closed to new replies.