This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi,
Id like to use 2 separate themes using a domain and sub-domain.
Example: www.site.com using the main static theme www.shop.site.com using another shop theme
What's the best method to approach this?
Id like all themes to pass data to one another too. ie. login, variables etc.
Any help would be great, thank you
Hi Dan,
The best approach here would be to use different environment variables for different subdomains and then set the theme accordingly.
So fo the main domain, in apache or your webserver you can set this environment variable:
ACTIVE_THEME=mytheme1
For the subdomain, you can set it to something else
ACTIVE_THEME=mysubdomain1
Hope this helps
Last updated
1-3 of 3