Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Blake Webster
Blake Webster
5,901 Points

Style.css error

When I download the project files for the How to Make Child Themes video and open it up in Sublime Text I'm getting an error that says "Fatal error, cannot continue: Expected STRING at line 11, col 9, line 11, Column 10" and the line that has the @import "../twentythirteen/style.css" has a red ! next to it. I ignored it and tried uploading it anyway and my child theme on my Wordpress site isn't importing the style.css from the TwentyThirteen theme. Any suggestions?

6 Answers

Jeremy Frimond
Jeremy Frimond
14,470 Points

Hey Blake Webster I was having the same issue and was ale to fix it, via dumb luck. Go into the child style.css file, delete the quotations around the import directive, then retype the quotations in the exact same place and save. After doing that re-upload the file to your server and the css should be applied.

Hope it helps for you!

Blake Webster
Blake Webster
5,901 Points

I thought to do that too, and that got rid of the error message but when I reuploaded to the server it still isn't loading the css.

Blake Webster
Blake Webster
5,901 Points

Zac Gordon should have tagged you in this to grab your attention to see if there is a problem with the file or not.

Jeremy Frimond
Jeremy Frimond
14,470 Points

I dont have the red or the fatal error message but ...

"my child theme on my Wordpress site isn't importing the style.css from the TwentyThirteen theme. Any suggestions?" also

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Strange that that happened. I just reuploaded the file. Are you still having the same problem?

Blake Webster
Blake Webster
5,901 Points

Still having the same issue where the CSS isn't imported but the error in Sublime Text changed to "@import prevents parallel downloads, use <link> instead."

Blake Webster
Blake Webster
5,901 Points

I've been playing with this for the last 2 hours and still haven't gotten it to work. Jeremy Frimond have you had any luck?

Jeremy Frimond
Jeremy Frimond
14,470 Points

Blake Webster I have had luck with it. After i retyped the duplicate code in things started working for me. Sorry I cannot be of more help! Did you end up figuring it out?

Blake Webster
Blake Webster
5,901 Points

still isn't working for me, guess I'll scrap it and start over :(