• A couple of weeks ago, I installed a website theme on my localhost, added text and pages and changed some colors.

    Today I created a Child Theme and followed the Codex instructions (I thought) exactly. When I Activated my Child Theme, the background colors of the site went gray (before there was a gradient green background). I went to Settings, Permalinks and changed the setting to Custom, Saved changes — but nothing changed.

    Here is what I did. Can anyone tell me why this doesn’t work?

    In mysitename/wp-content/themes I created a folder called
    twentytwelve-child

    Inside that folder I created a file called style.css. Here is the code inside the css file:

    /*
     Theme Name:   Twenty Twelve Child
     Theme URI:
     Description:  Twenty Twelve Child Theme
     Author:       My Name
     Author URI:
     Template:     twentytwelve
     Version:
    */
    
    @import url("../twentytwelve/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
Viewing 4 replies - 1 through 4 (of 4 total)
  • All these changes carried out via Appearance -> Customize are saved on a per-theme basis. In this respect, child themes are no different from any other theme, so you will need to make any changes again for this, new, theme.

    Thread Starter MCloney

    (@mcloney)

    But doesn’t the “@import..” bring in the styles from the parent theme when there’re no overriding settings in the child theme?

    Or are you saying that the color changes are in a different file than the css? How can I tell which files were updated that I need to bring over to the child theme?

    @import imports CSS files but not any customisations applied via Appearance -> Customize.

    Thread Starter MCloney

    (@mcloney)

    Bummer.
    Okay, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme Not Working – Created After Previous Theme Edits’ is closed to new replies.