• Resolved Harman

    (@harman-h)


    Hi all!

    I hope someone more knowledgeable than me can help me out…

    I have created a child theme for my WP site (www.quisqueya.nl), based on the Brunelleschi theme I am using. However, when I activate the child theme, just about all formatting is lost. No header image, no background, nothing.

    Following the Codex, I have inserted a style.css file in the child theme that goes as follows:

    /*
    Theme Name: Brunelleschi Child
    Description: Brunelleschi Child Theme
    Template: brunelleschi
    Version: 1.0.0
    Date: 1 October 2013
    */

    /* =Imports styles from the parent theme
    ————————————————————– */
    @import url(‘../brunelleschi/style.css’);

    /* =Theme customization starts here
    ————————————————————– */

    Do I perhaps need to copy or link some of the parent’s other .css files in the child theme as well?

    Any help is very much appreciated… Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Could you switch to it? Also, theme settings and options are not carried over to a child theme – you have to redo them there – so perhaps that’s the situation.

    Thread Starter Harman

    (@harman-h)

    @wpyogi Yes, I could switch to it.

    But I did not realize that none of the theme settings would carry over. That’s good to know; so I’ll have to reapply them.

    Does this only apply to the theme-related settings? (It is not always clear to me which settings are linked to the theme and which are built into WP or one of the plug-ins, as they can appear throughout the settings pages.)

    Should be just theme options/settings – like switching between any other themes.

    Thread Starter Harman

    (@harman-h)

    I’d never switched themes before, so I had no prior experience.

    Because of the nomenclature, I expected the child theme to “inherit” the settings from its parent. Instead, what you get is a blank-slate theme that offers the same options as the parent, but without the actual settings.

    Thanks for explaining this to me!

    Options are saved in your database on a per-theme basis. This would include widgets, custom menu locations, custom headers & background and possibly, theme options offered by the parent theme itself. This is the case with all parent & child themes.

    Thread Starter Harman

    (@harman-h)

    Thanks, esmi!

    Just out of curiosity, is there are quick & easy way to copy those options; are they saved together in a settings file somewhere?

    There’s really no easy way that I know of. Widgets, custom headers/backgrounds & menu locations are always theme-specific. That’s just the way in which the core theme API was coded.

    That said, I’ve always coded my custom theme options so that the child automatically picks up & uses the parent theme’s custom settings. If that’s not happening for you, I can only assume that the theme’s developer used a different approach for some reason.

    Thread Starter Harman

    (@harman-h)

    I’ve sorted things out now, thanks for all your help.

    After reinstating some of the settings, everything was back to the way I wanted. Most settings, like the widgets, seem to have carried over well. But the header and background settings were gone.

    Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Brunelleschi Child Theme not working’ is closed to new replies.