Page.php body different width than index and single post page


Author Message
jzone

Posted: 4/24/2009
Quote message 

I want to have a sidebar on post pages and category archives but have pages fill the entire the 850px width of the site. I've been able to remove the sidebar but I don't know how to change page.php style to widen the page - any ideas? :-{}
 
Mersey Internet

Posted: 4/25/2009
Quote message 

I solved something like this on my site
Normal page: http://spurs2u.info
No left sidebar page: http://spurs2u.info/past-results/

I did it by copying page.php to page1.php and changing the start of page1.php to be

<?php
/*
Template Name: NoAds
*/
?>
<?php get_header(); ?>
<div class="contentLayout">
<div class="content-sidebar1">

instead of the following

<?php get_header(); ?>
<div class="contentLayout">
<div class="sidebar1">

You then need to change the template used by the page (In my case the Past Results page) to use the new template (i.e. page1.php)
You do this by editing the page in Wordpress and selecting the new NoAds template from the Template dropdown section of Attributes on the right of the page.

I did it without much thought. It worked more by luck than skill I think!