If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
September 8, 2013 at 2:16 pm #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
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.
IggySeptember 8, 2013 at 4:32 pm #140155
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.
DevinSeptember 9, 2013 at 7:22 pm #140156
It’s called ‘Broadscope’. I tried changing to ‘broadscope’ and the corresponding line:
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.September 10, 2013 at 12:58 am #140157
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.
DevinSeptember 10, 2013 at 11:14 am #140158
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.September 10, 2013 at 12:11 pm #140159
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.September 10, 2013 at 12:15 pm #140160
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.September 10, 2013 at 12:33 pm #140161
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.September 11, 2013 at 4:54 pm #140162
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.
The topic ‘Child Theme Broken’ is closed to new replies.