I took the initial steps to create a custom theme for a D8 site (basically, copying the stark theme and changing the folder name and the YAML files)
When I went to the /admin/appearance page, I initially had an error due to a syntax issue in the info.yml file (an accidental extra quote mark in the description). I fixed that and the theme showed up on the Appearance page. However, when I tried to enable the theme, I received a message that the theme {themename} could not be found.
Once I manually cleared all the caches, I could enable the theme as normal.
(As an additional note, my theme name initially had a hyphen, but I couldnt see it in the /admin/appearance page until I removed the hyphen)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | theme_system-2041313-2.patch | 720 bytes | vineet.osscube |
Comments
Comment #1
vineet.osscube commentedComment #2
vineet.osscube commentedI have fixed this issue. I am attaching a patch for the same.
Comment #3
marcingy commentedMakes sense
Comment #4
alexpottThink I've ran into this myself... thanks for the fix!
Committed 230432a and pushed to 8.x. Thanks!
Comment #6
Jeff Burnz commentedThis does appear to be a complete fix this for this issue - if you hit "Enable and set as default" you can still get the not found error. I thought this might be a caching issue because if you immediately try again it works.
Comment #7
marcingy commentedIssue above is a dup of #2099447: Enable and set default on new theme shows "theme not found" on first attempt
Comment #8
Jeff Burnz commentedThanks marcingy.