Subdomain question
« on: January 31, 2025, 12:51:22 PM »
Hello guys im trying to understand how Subdomains are working.
I did see that you can create them and they will use the same theme but I want to take this feature a little further and use the Subdomains and have them pointing to a different theme for each Subdomain.
Example Sub1 to theme1 Sub2 to theme 2 and so one this bacause i can create content for each Subdomain and not having the problem with duplicate content.
My question is if this is possible i asked Chapgtp and give me this answer (see attached photo)i would like to know from a dev prospective if this is really possible and if chatgtp giveit me the write code for it.

Thank you
« Last Edit: January 31, 2025, 01:36:44 PM by Cristinel Constantin Chiriac »

*

Wiz

  • ****
  • 164 posts
Re: Subdomain question
« Reply #1 on: February 01, 2025, 04:33:52 PM »
Aside from developing a custom plugin to handle this, it's not that easy and ChatGPT needs to have full view (context) of your codebase to recommend proper working code ie. trained on your codebase. If you make changes to the core files, you'll be running a custom, complex setup which will require maintaining a different codebase from the source.

It's doable if you know Php and have familiarized yourself with the codebase as there are lots of dependencies and many files to modify to achieve a multi-themed sub-domain setup.

*

MB Themes

Re: Subdomain question
« Reply #2 on: February 01, 2025, 05:34:43 PM »
I think in this cas is just simpler to use separate installations for each domain.
It should be possible to configure different theme per each domain but never tested this.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Wiz

  • ****
  • 164 posts
Re: Subdomain question
« Reply #3 on: February 01, 2025, 07:02:00 PM »
I think in this cas is just simpler to use separate installations for each domain.
It should be possible to configure different theme per each domain but never tested this.

Yes, that's possible too but it will require extra effort to configure and maintain multiple installations and search will be limited per root/sub-domain. There's also the issue of having multiple different user dashboards resulting in a fragmented user experience (if operating a single brand) unless the OP desires this specifically (multiple brands, different logos, style etc.)