Attempts to create a subtheme using the Yeoman generator seem to correctly create the right files (including the .info file), but the subtheme is unavailable to enable. I've tried creating a subtheme of all types (Aurora, Polaris, etc.), yet none have shown up on the theme administration page.

This may be related to changes made to fix message "This version is not compatible with Drupal 7.x and should be replaced".

**UPDATE**

After several tests I have determined the problem is simply caused when more than one word is used for the name of the subtheme. When more than one word is used, the generator will create a directory name and .info file using hyphens. This is apparently causing Drupal to ignore the subtheme.

When the hyphens in the directory name and .info file are replaced by underscores the subtheme correctly appears.

Comments

JimSmith’s picture

Title: Subtheme generated by Yeoman doesn't show up » Subtheme with more than one word in name doesn't show up
Issue summary: View changes
JimSmith’s picture

The hyphens run afoul with theme hook naming conventions. (see https://www.drupal.org/node/933976)

iamcarrico’s picture

Status: Active » Fixed

Ah, yes--- the slugify method doesn't work for Drupal. It has already been fixed, and waiting on the next release--- which will be this weekend most likely.

JimSmith’s picture

I was just thinking slugify was the culprit. Glad to know a fix is coming and also that I don't need to wait for it. I simply used a single word name.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.