• Resolved angelatjuh

    (@angelatjuh)


    Hello,

    I’m trying to make a child theme to make some alterations to the style sheet.
    When I activate the child theme, the template of the original gridster lite doesn’t show.
    Isn’t it possible to make a child theme with gridster lite? Or maybe do I have to change something extra?

    Thanks in advance,
    Angela

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter angelatjuh

    (@angelatjuh)

    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");

    Thread Starter angelatjuh

    (@angelatjuh)

    Such a small change! Thanks, this works like a charm ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘child theme’ is closed to new replies.