Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WordPress Theme Development Starting a WordPress Theme Setting Up A WordPress Theme Folder

Kevin Roosey
Kevin Roosey
4,063 Points

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

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;