Multiple Themes one Blog


Author Message
Greg Fyn

Posted: 5/2/2009
Quote message 

Hello,

I would like to apply some blog components on some pages and not on others. Is there a way to accomplish this?
 
WillDee

Posted: 5/2/2009
Quote message 

Quote Greg Fyn:

Hello,

I would like to apply some blog components on some pages and not on others. Is there a way to accomplish this?


I've done this by creating two separate themes (primary and secondary), one with 2 sidebars, one without sidebars. You use one of the secondary themes' pages as a template by renaming it and changing the comments at the top of the file, and dropping it into the primary theme you're going to use.

http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates has info on how to create page templates.

 
Greg Fyn

Posted: 5/3/2009
Quote message 

Thanks WillDee, I got as far as dropping the modified theme into the primary theme, how do you apply the secondary theme to select pages?
 
Greg Fyn

Posted: 5/3/2009
Quote message 

:-) Solved! :)

I had just dropped another theme into the folder. This was not working. There was no drop-down in the right side to choose the appropriate template, so what followed fell under the category Read the Manual. As a new person wordpress I had to learn the terminology so I went to the page that WillDee recommended. The operative part of the document is where you manually add the comment code by opening the pages file in notepad or some other pure text editor. I didn't know what comment code was for PHP. Now I will never forget.

The code you have to add at the top of the file is:

<?php
/*
Template Name: Whateveryouwantyourtemplatecalled
*/
?>

I had made my secondary template and renamed the page.php to something that I could recognize and would be able to distinguish then put that file into the Theme folder.

The other tip I can offer is that you cannot preview what an applied theme would look like. You have to update the page and then preview it. It drove me nuts until I found this to be the case....but we prevailed.

Thanks again WillDee for helping me get on the right track.
 
WillDee

Posted: 5/3/2009
Quote message 

Pleasure - glad you got it working.
Have to confess it took a while to get things working and I'm still learning as I go along. :)