This is exactly what I want to know… I wish you could choose to edit the sidebar when you edit a ‘page.’
Also, I’ve gone from a html site with 5 pages (which is supposedly ever so outdated) to having this wordpress site where I’ve got 5 different header.php and footer.php to get the different header and footer info on each page, and 5 different page.php templates to call their respective headers and footers. Now I’m starting on the sidebars, and it’s a nightmare — looks like I’ll need to do another 5 different sidebar.php files. Gone from 5 files to 20 and counting… argh!
There should be an easy way to do this! I wish that on the ‘page’ edit screen, you could choose which header, footer, and sidebar to use, easily.
thanks for any help anyone can provide!
This is the exact problem I am having.
Can someone advise?
Hey…this link should help you out….http://elliotjaystocks.com/blog/archive/2008/wordpress-tutorialhow-to-apply-a-dynamic-body-class-or-id/
Basically an easy way to accomplish this is to identify the div that you want changed for each page and replace it with this..
<?php if (is_front_page()) { ?>
<body class=”news”> <!– The default body class is “news” –>
<?php } else { ?>
<body class=”<?php echo $post->post_name; ?>”> <!– An alternative body class is defined, based on the page title –>
<?php } ?>
On my site I changed the header for each page so I changed the <body class” to <div id=”header”. I utilized the .htacess permalinks so the page name would reflect the div in my css.