This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dan_gell62806
dan_gell62806

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

daftspunky
daftspunky

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

dan_gell62806
dan_gell62806

Many thanks, will give this a go

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.