I have a multi-site setup. There gonna be three themes. The look the same but they are different in colors. What are best practices to setup my theme structure:

  1. In themes/custom/site1 and site2 and site3
  2. Or in sites/site1/themes ?

If they only differ in color, you should provide a theme setting for choosing it and setup the theme in /themes/custom/mymulticolortheme, so it will become available for all sites. Otherwise you have to maintain multiple nearly identical themes, which is a time killer when you have to fix a bug or add a feature.

If you have different themes for each site you should place each theme in the particular site theme folder like /sites/site1/themes/custom/myspecialthemeforsite1, /sites/site2/themes/custom/mytotalydifferentthemeforsite2 etc., so that they are only available for sites they belong to.

  • And for default site in sites/default/themes/ ? – meez Apr 15 '16 at 8:48
  • yes, if it is specific for the default site, otherwise use the web root folder /themes/. – Philipp Michael Apr 15 '16 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.