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 WordPress Theme Development Starting a WordPress Theme Setting Up A WordPress Theme Folder

Wordpress development file problems

I'm trying to get my files on wordpress however when I upload them to wordpress it says I need a parent theme however I have no clue how to go about doing that

1 Answer

Jessica Murillo
Jessica Murillo
9,119 Points

Are you creating a child theme or your own theme? Usually, when creating a child theme and I am missing the Template name is the stylesheet comment is when I get the error.

If you are getting the error with your own theme that you have created from scratch, this might help by adding it to the top of your style.css, it worked for me:

/*
Theme Name: Treehouse Portfolio
Author: Genesis
Author URI: http://genesismurillo.com
Description: A post modern, simple, responsive portfolio theme designed in WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, white, light, one-column, two-columns
*/

The code can also be found here and it has and example of template for a child theme: https://codex.wordpress.org/Child_Themes

And this is for theme development: https://codex.wordpress.org/Theme_Development

Sorry if I am completely wrong;