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 trialStephanie Roberts
16,757 PointsI am not able to install the template-hierarchy theme in wordpress. It says that the style.css is not found.
I cannot upload this theme to wordpress. I have tried to upload the unzipped folder and it keeps saying that style.css was not found and that it cannot upload. Could someone assist me with this please.
Thanks
9 Answers
Samantha Bretous
1,803 PointsThere is one extra level of directories when you are installing the theme. If you are installing the zip directly from the project downloads it will not work. WordPress is looking for just style.css but you are installing it wp_template_hierarchy/style.css so it is having trouble finding it. You need to open the zip and re-zip just the template-hierarchy folder. After that WordPress will give you the thumbs up. Happy Coding!!!
Stephanie Roberts
16,757 PointsIt is okay franck I managed to get it working I had to copy the subfolder and paste it directly into my WordPress folder under themes
Michael Walker
45,428 PointsThere is a solution easier than unzipping and re-zipping (although that does work). Just unzip the folder, copy just the template-hierarchy folder (ignoring the png file that unzips) to wp-content/themes folder. WordPress will then see the theme as installed. Just activate it from there are you're good to go!
austingilmour
3,980 PointsIf you're trying to install the theme through the administrative panel, upload the zip file compressed. https://codex.wordpress.org/Using_Themes
Stephanie Roberts
16,757 PointsIt is still not working. I dont know what to do.
Franck Fremont
12,197 PointsWhere do you find this theme, Stephanie? I could try to install it and to understand what happens.
Franck Fremont
12,197 PointsHappy to see that everything is all right now. :-)
Teena Abbott
21,054 PointsI had this same issue but the solutions above did not seem to work for me. I unzipped the folder opened it and zipped the folder named template-hierarcy and uploaded that file. That worked for me. I hope this helps.
Jody Lock
2,103 PointsMy install didn't work through the dashboard. It said there was no style.css file. I had to install it manually to the themes folder via FTP and then it worked.
Alfred Lua
1,977 PointsAlfred Lua
1,977 PointsThis did the trick for me. Thanks, Samantha!