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 The WordPress Template Hierarchy How WordPress Templates Work Walkthrough of Example Site

I 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
Samantha Bretous
1,803 Points

There 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!!!

Alfred Lua
Alfred Lua
1,977 Points

This did the trick for me. Thanks, Samantha!

It 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
Michael Walker
45,428 Points

There 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!

If you're trying to install the theme through the administrative panel, upload the zip file compressed. https://codex.wordpress.org/Using_Themes

It is still not working. I dont know what to do.

Franck Fremont
Franck Fremont
12,197 Points

Where do you find this theme, Stephanie? I could try to install it and to understand what happens.

Franck Fremont
Franck Fremont
12,197 Points

Happy to see that everything is all right now. :-)

I 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
Jody Lock
2,103 Points

My 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.