[wp-hackers] site sections, distinct theme per section

Erick Hitter ehitter at gmail.com
Fri Jul 8 10:28:54 UTC 2011


Using the template system, perhaps in conjunction with custom post types,
will achieve what you're looking to do. *front-page.php* or *home.php*, for
example, will be used on your site's front page. *archive-[custom post
type].php*, *single-[custom post type].php*, etc will be used for a specific
custom post type. *category-[category slug].php* is used for the given
category archive. For more in-depth coverage of this, see
http://codex.wordpress.org/Template_Hierarchy.

For greater control, the *template_include* filter, found in
wp-includes/template-loader.php, can be used to override WordPress' selected
template, offering even greater control when paired with conditional tags.

Erick

On Fri, Jul 8, 2011 at 04:54, 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