Directory name of theme coursing issues if not the same as "Theme Name" #976

Closed
opened 2026-10-05 00:26:21 +02:00 by adam · 0 comments
Owner

If the directory of a theme is named with non-capitalized letters (e.g. "mytheme", and "Theme Name" is set to a name with different capitalizing (e.g. "MyTheme") in themeconf.inc.php, the theme can not be set as a personal theme for a user (in Customize). The theme can still be set as a default theme though.

I have not tried to make the two names totally different. Though I assume the result will be the same.

Easy workaround is of course to keep these two names the same. But as far as I know, it is good habit to keep directory names with non-capitalized letter. Though you most often want the theme name capitalized.

Also, many existing themes on piwigo.org is suffering under this issue.

/Djelle

If the directory of a theme is named with non-capitalized letters (e.g. "mytheme", and "Theme Name" is set to a name with different capitalizing (e.g. "MyTheme") in themeconf.inc.php, the theme can not be set as a personal theme for a user (in Customize). The theme can still be set as a default theme though. I have not tried to make the two names totally different. Though I assume the result will be the same. Easy workaround is of course to keep these two names the same. But as far as I know, it is good habit to keep directory names with non-capitalized letter. Though you most often want the theme name capitalized. Also, many existing themes on piwigo.org is suffering under this issue. /Djelle <!-- github-sync-id:523856344 -->
adam closed this issue 2026-10-05 00:26:21 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#976