When creating a chlidtheme you only need one file which is Style.css. In addition, add a copy of the screenshot.png file from the parent to chlidtheme folder.
Does your child theme’s stylesheet have the line:
Template: gridster-lite
Your child theme needs that line so WordPress knows what parent theme to use.
Thanks for your reply. Yes the line in the code does say gridster-lite, this is the code in the style.css so far :
/*---------------------------------------------------------------------------------
Theme Name: Gridster-lite Child
Template: gridster-lite
*/
@import url(“../gridster-lite/style.css");
.tagline {
margin-left:15px;
margin-right:1px;
font-size: 12px;
line-height:15px;
padding-bottom:15px;
border-bottom: 1px solid #272F34;
box-shadow: 0 1px 0 #4B6272;
}
The .tagline is the alteration I want to make.
Activating this child theme looks like a Word document is my new site, nothing of the original theme is included in the child theme.
Is there something wrong with the child css code?
Angela
You have a curly quote in your @import line. Unfortunatley, you can’t use curly quotes in CSS, you need to use straight quotes like this:
@import url("../gridster-lite/style.css");
Such a small change! Thanks, this works like a charm 🙂