Support » Fixing WordPress » Customize content and header/nav/widgets based on subdomain?

  • Current setup: I have Site A and Site B configured on a MultiSite/Network configuration. One WordPress install, two blogs.

    Site A represents an organization. There are different chapters within it (for example an LA chapter, a NY chapter, and a Chicago chapter). Ignore Site B.

    Can I customize what posts are shown and where header links link to, all based on the subdomain of the url? For instance, SiteA.com shows all posts and a general “About Us” page in the header. But go to chicago.SiteA.com and all posts are only those for the Chicago Chapter, and header links link to the Chicago version of the “About Us” page. Maybe it would also have a different header image as well. Then the la.SiteA.com would only show posts related to the LA chapter, along with its own header nav menu.

    Is this a possibility, is there a plugin already made for this? The hardest part I can see is getting the subdomains to work, especially with the MultiSite configuration. But if I can just map la.SiteA.com to, say, SiteA.com/la (either via the domain plugin for MultiSite or via Apache), then how would WordPress customize the content and the headers/sidebars based on the specificity of the URL?

    I tried Googling, but finding a topic about this in a few words is difficult.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customize content and header/nav/widgets based on subdomain?’ is closed to new replies.