• I am trying to organise a child theme and I cannot work out what I am doing wrong. I am getting the following error message in the Themes page on wordpress:

    The parent theme is missing. Please install the “twentytwelve\” parent theme.

    I am entering the following code for my style.css:

    /*
    Theme Name:     Twenty Twelve Child
    Description:    Child theme for the Twenty Twelve theme
    Author:         Jamie Bisson
    Template:       twentytwelve
    Version:        0.1.0
    */
    
    @import url("../twentytwelve/style.css");
    
    .entry-content h3,
    .comment-content h3 {
    	font-size: 18px;
    	font-size: 1.285714286rem;
    	line-height: 1.6;
    }
    .entry-content h4,
    .comment-content h4 {
    	font-size: 18px;
    	font-size: 1.285714286rem;
    	line-height: 1.6;;
    }
    .entry-content h5,
    .comment-content h5 {
    	font-size: 18px;
    	font-size: 1.285714286rem;
    	line-height: 1.6;
    }
    .entry-content h6,
    .comment-content h6 {
    	font-size: 18px;
    	font-size: 1.285714286rem;
    	line-height: 1.6;
    }
    
    <?php
    		// Has the text been hidden?
    		if ( ! display_header_text() ) :
    	?>
    		.site-title,
    		.site-description {
    			position: absolute !important;
    			clip: rect(1px 1px 1px 1px); /* IE7 */
    			clip: rect(1px, 1px, 1px, 1px);
    		}
    	<?php
    		// If the user has set a custom color for the text, use that.
    		else :
    	?>
    		.site-title a,
    		.site-description {
    			color: #<?php echo $text_color; ?> !important;
    		}
    	<?php endif; ?>

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would remove the php from the css.

    also, I know it’s obvious but make sure you got 2012 inside the theme’s folder too.

    Thread Starter jamiebisson

    (@jamiebisson)

    Well the php are changes that are made to my theme files. Do you have any suggestions to changes i need to make to allow these changes to come across when I update the theme files.

    I have the following structure in the folders:

    -wp-content
    --themes
    ---twentytwelve
    ---twentytwelve-child

    So the code I have entered is not working…. anyone got any help on this one please?

    Is your Child Theme working at all?

    If not, I would begin with just this…

    /*
    Theme Name:     Twenty Twelve Child
    Description:    Child theme for the Twenty Twelve theme
    Author:         Jamie Bisson
    Template:       twentytwelve
    Version:        0.1.0
    */
    
    @import url("../twentytwelve/style.css");

    …to get the Child Theme working, then begin adding more to it.

    And if you might want to be sure all things are “tight and right” as you go, I use this plugin:
    https://www.ads-software.com/extend/plugins/tac/

    Well the php are changes that are made to my theme files

    Not sure what that means, but there should not be any php code in a CSS file. That may or may not be the problem however.

    If you want to make changes to your theme file, you need to make a copy of the template of your parent, upload it to your theme and then make the changes in there.

    Your style.css should only have css in it.

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