1

I have a multi-site setup with three themes. They look the same, but they are different in colors. What are best practices to setup my theme structure, in themes/custom/site1, site2, and site3, or in sites/site1/themes, sites/site2/themes, and sites/site3/themes?

2 Answers 2

4

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.

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

IN this case, where the themes differ only in color, you should create a single theme. And try using theme settings of color module to change the color as required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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