.
(@techievous)
So you want create a child them for BizStudio Lite them, using @import url in the child theme’s style.css, right?
/*
Theme Name: bizstudio-lite-child
Description: Bizstudio Lite Child Theme
Author: Your Name Here
Author URI: http://example.com
Template: bizstudio-lite
Version: 1.0.0
*/
@import url("../bizstudio-lite/style.css");
/* =Theme customization starts here
-------------------------------------------------------------- */
That’s for your child theme’s style.css, assuming everything in standard location. Don’t forget to go back to your Appearance –> Themes and activate the child theme after this.
Also please note that using enqueue is generally preferred over @import style nowadays.
Hi,
I put it in just like that and still get the following error in my Appearance–>Themes area:
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name
bizstudio-lite-child Description: Bizstudio Lite Child Theme Author: Cathy Author URI: http://www.officesupportexpress.com Template: bizstudio-lite Version: 1.0.0
Description
Template is missing.
I named my folder bizstudio-child. Then I included the style.css file and put in the code you used above.
It still doesn’t work.
I don’t know what enqueue is.
Do you have any other suggestions? I have to get to bed it’s late here, so I’ll check back some time tomorrow.
I appreciate your help.
COKeefe
.
(@techievous)
That should work with any standard setup. I’ve installed the theme on my test server and tested it; it works on my test.
So that leaves us with 2 possible causes:
– Is your parent theme installed properly? Perhaps try deleting then re-installing the parent theme?
– Did you customize anything in as far as theme locations and structure?
Edit: let me add some screenshots
Active and activated, notice the parent theme next to it and the options in the Appearance section; also note the “new theme activated” message, with no error:
http://i.imgur.com/52QwMwP.png
Also, theme folders:
http://i.imgur.com/IufbmVZ.png
The code is, of course, the same as the one I posted above.
Hi,
I deleted the parent theme and child theme. Then I uploaded a new copy of the parent theme. I tried re-installing from my Themes page. Still didn’t work. So, I downloaded a new copy from the wordpress.org site. It still does not work. My child theme has only one file in it: style.css. Here is my code:
/*
Theme Name: bizstudio-lite-child
Description: Bizstudio Lite Child Theme
Author: C.OKeefe
Author URI: http://www.officesupportexpress.com
Template: bizstudio-lite
Version: 1.0.0
*/
@import url(“../bizstudio-lite/style.css”);
I put in single quotes in the url path also. It didn’t make a difference.
I did try this on my local site in a test site I have. And it worked fine!!
I will check back to see if you have any other ideas. It’s probably something really simple I’m missing.
I have to go to work later but I can check back.
Thank you,
cokeefe
I have activated Jet Pack and now have the CSS Stylesheet editor within my Appearance block. So I can change the styles without worrying about losing them all without the child theme, but I still want the child theme. I’ll have to get back about why the child theme is not working. It just keeps saying it is missing the template. But it works on my local test site.
Thanks for your help. I think we at least narrowed the problem down.
COKeefe
I was able to get the Child Theme installed. I just uploaded it from my Theme page.
I was using FileZilla to upload it in the beginning. For some reason Filezilla would not upload it properly.