Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #29247

    Has anyone successfully created a Child Theme in Broadscope? I have created child themes against other themes many times with no problems.

    I’m getting the website ok but the layout of menus and a few other things are broken.

    I have just been troubleshooting it and ONLY when I copy and paste the entire contents of style.css does it work.

    That clearly means that the line

    @import url(“../Broadscope/style.css”);

    is not working. I checked the path and the case.

    I found a google search (2 years old) which suggests the problem lies with the header.php which I don’t want to edit for obvious reasons:

    Any input would be welcome. Otherwise I will abandon the idea.




    Hi Iggy,

    Is your theme folder actually named “Broadscope” or is it”broadscope”. I know the style.css header is capital specific so try the import as well.




    It’s called ‘Broadscope’. I tried changing to ‘broadscope’ and the corresponding line:

    @import url(“../broadscope/style.css”);

    but then the child theme disappears from the theme choices. I then load ‘broadscope’ and then it appears but when I activate the child theme the problem remains.


    The parent style.css is getting included from the themes header.php file already so there isn’t a need to actually import it in. If you dont’ want that to happen then in your header.php replace:

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />


    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>" />

    Which will then pull up the style.css for the active theme and not the parent.




    I’ve tried that and I get the same issue. It will only work if I copy and paste the entire style.css into the child theme.


    Well yes, if you aren’t including the parent style.css any longer in any form then it wouldn’t work. You still need to import in the parent.


    But then what’s the point of using a child theme? Or put it another way, am I correct in thinking that I cannot use a child theme with Broadscope without editing the master theme files – which, of course, is why we use child themes anyway?

    I don’t really mind, I just don’t want to waste time trying to make it work if I don’t gain any advantage.


    Just as an experiment- I copied the entire contents of the style.css across to the child theme AND I made the changes to header.php that you kindly suggested but I was still getting formating problems.

    Only when I added the line @import url(“../Broadscope/style.css”);

    (together with the entire contents of the style sheet) did it actually work.

    Now that is very curious.


    If you copy the header.php to the child then you aren’t modifying the parent.

    The parent already has a custom.css file that doesn’t get changed between theme updates as well.

    A child theme has some use but it really depends on what you are doing. For minor css it isn’t really worth it.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Child Theme Broken’ is closed to new replies.