[wp-hackers] site sections, distinct theme per section
Chip Bennett
chip at chipbennett.net
Fri Jul 8 13:07:46 UTC 2011
Not all that difficult, really.
Let's say each "wing" of an organization's site is a separate Page
hierarchy. You have several options:
1) Create separate custom Page templates for each "wing" (Page hierarchy).
2) Programmatically modify the default Page template content/markup, based
on Page hierarchy (i.e. Parent Page ID), a few different ways:
1) Hard-code directly in page.php
2) Call different headers, via get_header( '{page}' ), where {page} is
the "wing"/context/whatever
3) Call different content, via get_template_part( '{page}' )
The main conditionals you would need are is_page( $page ), and a custom
conditional to determine the top-level parent Page.
Chip
On Fri, Jul 8, 2011 at 3:54 AM, John Black <immanence7 at gmail.com> wrote:
> Thanks for that Lynne.
>
> 1. What kind of conditionals would I be looking for?
> 2. General comment thrown into the wilderness: It is obvious that very
> large organisations have different wings. Wordpress has made great leaps
> forward lately, in terms of adoption as a full blown CMS. This could be
> encouraged more if this kind of functionality (the ability to have sections,
> recalling different themes / aesthetics) were able to be built into a single
> install.
>
> I'll look into the multisite option.
>
> best,
> JB
>
> On 8 Jul 2011, at 10:30, Lynne Pope wrote:
>
> > It's possible to do this by using conditionals in the header.php to serve
> > different css and JavaScript files to different categories. This only
> works
> > if the underlying HTML structure is the same for each of your sections
> and
> > you are happy to have each section set up as a category. The only other
> way
> > to do this is by using a multisite install and setting each section up as
> > its own instance within subdomains.
> >
> > Lynne
> >
> > On Fri, Jul 8, 2011 at 5:29 PM, John Black <immanence7 at gmail.com> wrote:
> >
> >> I've searched for an answer and didn't find anything. Not even a premium
> >> plugin exists, to my knowledge.
> >>
> >> Is there any way to do the following:
> >>
> >> Have multiple sections within a single WordPress installation (or
> domain)
> >> that each call up a distinct theme?
> >>
> >> For example: Maybe I'd like to use one theme for the opening pages; use
> a
> >> second theme for a dedicated e-store; a third theme for a dedicated
> video
> >> store; or another theme for a ticket / help section.
> >>
> >> These are just examples.
> >>
> >> I know that much can be done with single post templates, but this is not
> >> what I'm talking about. I'd really like to be able to use more than one
> >> theme on my domain.
> >>
> >> (p.s., I know subdomains would be a way, possibly, of doing this. But it
> >> seems an awful hassle, to have several installations running, several
> >> databases, etc, and I'm sure there would be issues later, not least,
> >> perhaps, with SEO).
> >>
> >> ANY IDEAS??
> >>
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list