Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Custom theme doesn't appear in configuration

Started by Muut Archive 9 years ago · 2 replies · 551 views
9 years ago

Hi,

I have created a custom theme (copying antimatter to a new folder) and I have been able to use it by modifying the system.yaml file. However my theme doesn't appear in the configuration back office or in the drop down for selecting a theme. If I save any changes to the configuration it automatically gets set back to antimatter.

Any help appreciated.

9 years ago

There are a number of things you need to rename, not just the folder.

  1. the antimatter.yaml file should be renamed to match
  2. the antimatter.php file should be renamed to match, and the class name inside the file should also be renamed.
  3. the blueprint.yaml needs to be updated with the new theme's name.

If you do all those, it should show up.

9 years ago

thanks, I think it was a mixture of not all renames being lower case, once i made sure they were all the same it seemed to work okay and the custom theme was selectable in the admin area

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago