Different style for page and post


Author Message
Imran

Posted: 12/27/2009
Quote message 

Just evaluating Artisteer for Wordpress and have a question. Can we have different style in page and post? For example can we have a sidebar in the posts and no sidebar in the page?
 
Garry

Posted: 12/27/2009
Quote message 

You can do it by creating new page templates as following:

Copy all code from page.php, create a new file(.php) name it any of your choice and paste the copied code in it, add following code on top of it:

<?php
/*
Template Name: new template
*/
?>

Upload that file into your theme folder and your new template will be available to you to choose from a drop down list when you add new page or edit existing page.

You can change this template's structure to your needs; you can assign a new name to your sidebar and you’ll be able to add desired widgets to this sidebar from widgets page. Now you can use this page template on pages where you need different structure and different set of widgets

 
Gerda

Posted: 12/29/2009
Quote message 

this works fine.

will it also be a solution for a different header ?

 
Garry

Posted: 12/29/2009
Quote message 

Yes, you can insert different header in each page
 
Gerda

Posted: 12/30/2009
Quote message 

hello, how can I do it?

I suppose I need to change my newpage.php and put in a code for my new header, but where and how

thanks
8-)


 
Garry

Posted: 12/30/2009
Quote message 

Create a new header.php having(calling from css) a new header image and call your new header1.php from your new page template.