Change wordpress theme based on URL

I posted this question 2 days ago. What I wanted to do was to run 2 WordPress sites having different theme on the same database. I was advised that it couldn’t be done and that I should replicate and use the same database for each.

However, I was wondering if there’s any way I could change the theme based on the URL being accessed,

Read More

Something like this,

if (URL == "one.site.com") {
   LoadThemeOne();
}
else if (URL == "two.site.com") {
   LoadThemeTwo();
}

I appreciate any help, Thanks.

Related posts

1 comment

Comments are closed.