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

Child theme not showing up under my wordpress themes

I'm having trouble getting my child theme to work. I created the directory for the child theme and included the style.css and functions.php files. I used filezilla to transfer the directory to the server, but nothing shows up. I also tried using @import instead of functions.php, but that didn't work either. Filezilla says all the files are being transferred successfully and the directory appears to be in the correct place, I'm just not seeing the theme on wordpress to choose.

I'm running ubuntu if that matters. Has anyone else had this issue?

Julian Gutierrez
Julian Gutierrez
19,201 Points

What have you included in your style.css?

My style.css includes:

/* Theme Name: Twenty Thirteen Child Theme URI: "my site url" Description: Child theme for the Twenty Thirteen theme Author: Brian Template: twentythirteen Version: 1.0 */

1 Answer

What are the contents of your style.css

Did you figure this out Brian?

I have not figured out the solution yet. I followed the course video exactly, but no luck.

Remove everything from the child theme folder and make sure this is in your style.css inside that folder.

/* 
Theme Name: Twenty Thirteen Child
Theme URI: "my site url"
Description: Child theme for the Twenty Thirteen theme
Author: Brian
Template: twentythirteen 
Version: 1.0 
*/

I tested your provided code with a fresh install and twenty fifteen theme and just changing template to twentyfifteen it all worked as intended.

style.css is the only file that is required to allow a child theme to work and help narrow down other issues.

Can you also link the video you are talking about? Your question was added under the general wordpress vs a track or specific video.

I pasted the code into my style.css and removed everything else from the folder. The child theme still does not appear. I can't seem to find the video I was watching. Is there any reason wordpress wouldn't recognize the files I'm transferring through FileZilla?

I just figured it out. It was an issue with FileZilla. I transferred the files using another service and the child theme is appearing as it should. After some research, other people were having the same issue with FileZilla. I appreciate your help.

My guess would be that there was a setting off in Filezilla vs Filezilla being an issue. It could have been anything from active or passive connection (default is passive) even though there is default, active and passive as options.

But in order to help figure out what was the cause would need to know a lot more. Host etc. If you got it working though I personally wouldn't worry about it if just using it for learning purposes. At least for now since this is something you could and most likely will run into if you should make a profession from it.