WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Brunelleschi Child Theme not working (9 posts)

  1. Harman
    Member
    Posted 9 months ago #

    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!

  2. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    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.

  3. Harman
    Member
    Posted 9 months ago #

    @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.)

  4. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

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

  5. Harman
    Member
    Posted 9 months ago #

    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!

  6. esmi
    Forum Moderator
    Posted 9 months ago #

    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.

  7. Harman
    Member
    Posted 9 months ago #

    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?

  8. esmi
    Forum Moderator
    Posted 9 months ago #

    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.

  9. Harman
    Member
    Posted 9 months ago #

    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!

Reply

You must log in to post.

About this Topic