Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress not recognizing theme in /themes/ folder

Having a really baffling issue with permissions, WordPress and theme files.

I have a fresh install of WordPress and tried uploading the theme I made for my client. It uploaded fine but it doesn't show up in the Manage Themes menu. I checked everything was uploaded and it was. Checked permissions (even set them to 777 at one point) and they were fine. But the theme doesn't show up.

Here are the different scenarios I've tried:

  • Using the Install Themes menu and uploading a .zip (failed)
  • Duplicate twentyten folder and contents (worked)
  • Duplicate twentyten folder and used my theme files (failed)
  • Duplicate twentyten folder and used my theme files and their style.css (failed)
  • Uploaded my theme WITHOUT style.css (gave missing style.css error)
  • Uploaded my theme WITHOUT style.css and put in twentyten/created one from scratch (both failed)

I'm on my clients MediaTemple hosting and I've never encountered this error. Their support has yet to get back to us.

Does anyone have a similar problem? Solution? It's possible I can give you FTP access if needed.

CSS Head (changed values but format and everything is still the same):

/*
Theme Name: Example Theme
Theme URI: http://example.com/
Description: WordPress theme
Author: Company
Version: 1.0
*/

Edit: Trying to access the folder through my browser results in a 403 error (works fine on twentyten). style.css can be viewed from the browser.

like image 840
Andrew Ryno Avatar asked Nov 10 '10 21:11

Andrew Ryno


People also ask

Why can't I see my WordPress Theme?

If your new uploaded theme is not showing up, make sure that you have uploaded it in the right location which is wp-content/themes in your WordPress installation folder.

How do I fix a broken WordPress Theme?

If you are comfortable with troubleshooting coding, you can edit the WordPress theme files directly from the dashboard. Log into your WordPress blog and click “Appearance.” Select “Editor” from the menu to see a list of files for your theme. Select the theme file you want to edit and change the code in the text box.

Why can't I change my WordPress Theme?

Try logging out of wordpress, clear your browser cache and cookies, restart your browser and then try again. It may be a cookie or cache problem.

Where are Theme files stored WordPress?

WordPress stores your theme files in /wp-content/themes/ folder.


4 Answers

If you are using a MULTI-SITE installation of Wordpress, you have to first go into Network Admin, select Themes from the left menu and enable the themes you like to use before they can appear on the "Manage Themes" page in the Site Admin section.

like image 56
Henrique Avatar answered Dec 28 '22 18:12

Henrique


Perhaps you are missing a required template file?

At the very minimum, a WordPress Theme consists of two files:

style.css

index.php

http://codex.wordpress.org/Theme_Development

like image 37
Craig Avatar answered Dec 28 '22 19:12

Craig


On Ubuntu 14.04 you can install the wordpress package simply using sudo apt install wordpress but then you have to set a link to the themes directory.

E.g. for your "newTheme":

ln -s /usr/share/wordpress/wp-content/themes/newTheme /var/lib/wordpress/wp-content/themes

like image 22
Rolf Avatar answered Dec 28 '22 19:12

Rolf


I bet you have some special characters in your templates. This once drove me nuts to find. Check your Template files and/or rename them until the theme shows up. I used a german "ö" in a templates name.

like image 43
weed Avatar answered Dec 28 '22 18:12

weed