you could use a conditional in your header.php
http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template
specifically if a page template is being used…
so if page template photo page is being used
<div id=”content_nosidebar”>
else
<div id=”content”>
Thread Starter
marczr
(@marczr)
Ok, that makes sense, except use of conditional tags is completely new to me, and I’m struggling with the correct format, I tried this… <?php if(is_page_template(<div id="content_nosidebar">)) ; else (<div id="content">); ?>
And it just broke the page, is there any chance you could write out the php code in it’s correct syntax for me?
Meanwhile I’l be googling for some tutes !
Thread Starter
marczr
(@marczr)
Sorted !
here’s what I needed….
<?php if (is_page_template('page-no-sidebar.php')) { ?>
<div id="content_nosidebar">
<?php } else { ?>
<div id="content">
<?php } ?>