I would like a different set of twig templates be used for all content that exists on a sub-domain of a website regardless of content type.


  • mysite.com/article (Main site theme)
  • sub.mysite.com/article (New templates)

Is there any way to do this?

1 Answer 1


You could add the domain to the template names in a theme name suggestion hook for each template, but if you want to have a complete set of twig templates for each domain it might be easier to create separate themes and switch them. In custom code with a theme negotiator or with this module Domain Theme Switch.

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.