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 trialBlake Webster
5,901 PointsStyle.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
14,470 PointsHey 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
5,901 PointsZac 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
14,470 PointsI 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
Treehouse Guest TeacherStrange that that happened. I just reuploaded the file. Are you still having the same problem?
Blake Webster
5,901 PointsStill 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
5,901 PointsI'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
14,470 PointsBlake 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
5,901 Pointsstill isn't working for me, guess I'll scrap it and start over :(
Blake Webster
5,901 PointsBlake Webster
5,901 PointsI 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.