Forums

Different Themes for Different Pages (4 posts)

  1. PeteHoliday
    Member
    Posted 3 years ago #

    I have two goals here, and any help pointing in the right direction would be helpful. I've looked all over Codex and I'm not finding what I need.

    1. I'd like to be able to create a page that uses a different theme from what the main blog is using. I can think of two ways to do this... one is to create a custom PHP page outside of the wordpress system and handle loading the wordpress files myself, the other is to create a page template that has some PHP magic which tells WP: Don't use the normal theme, use this one instead.

    2. I'd like to write a plugin that would allow a registered user to view the site using any installed theme. They would get a "presentation" menu for themselves, but when they changed the theme the change only showed up for them.

    I feel as though there is probably some variable or function in the wordpress system which points WP to the correct theme, but I've had no luck finding it... I feel like I could accomplish both of the goals above if I could get a line of code like this:

    <?php $wordpress->useTemplate('CustomTemplate') ?>

    I'm just having trouble with the magic words.

    Any help would be greatly appreciated.

    -Pete

    PS: Is there a better resource than Codex for WP variable and function reference?

  2. rainewalker
    Member
    Posted 3 years ago #

    I've been hunting for the same solution.

    I have built a series of pages that I would like to associate with a stylesheet other than the one that defines my site.

    Since the site stylesheet is called in the header, I haven't been able to figure out how to call an alternate stylesheet for individual pages.

    Any ideas?

  3. ryanfitzer
    Member
    Posted 3 years ago #

    This site does something similar to what your looking for. Hit the three little links at the bottom.

    http://www.sarahjanesemrad.com

    Doesn't seem to hard but I haven't made any attempt to duplicate it. Let me know if you get it to work.

  4. Nazgul
    Member
    Posted 3 years ago #

    This plugin sounds like a good place to start?

Topic Closed

This topic has been closed to new replies.

About this Topic