How can I have case-sensitive theme directory names when installed with Composer?


I’m using SatisPress ( to expose some premium plugins and themes as composer packages, because I would like to use the roots/bedrock boilerplate.

Now I have the following issue:
The Divi theme ( uses a capital letter for the themes directory (“Divi” not “divi”). Now when I use

composer require satispress/divi

it downloads the package and installs it to the correct directory and the theme is showing and is usable.

However the themes directory is now all lower case (“divi” not “Divi”) which breaks child themes based on Divi.

What I found:

  • Behaviour occurs on bedrock as well as in an empty directory
  • The packages zip files created by SatisPress have the correct case in the zips name and in the contained files as well

While it should be possible to just change the child themes template entry to lower case, this could be problematic when (for whatever reason) the main theme would be installed the “normal” way, now containing upper case again and break the site.

Is there a way to change the behaviour of either SatisPress or composer to allow for upper case letters in directory names?

, Daniel Bachmann 3 years 2020-03-28T08:50:53-05:00 0 Answers 128 views 0

Leave an answer