This code is fine but if I try to copy the last 3 lines and add a new custom page with a new custom header class, it doesn't work. I just want to add 2 new pages to my WP site with different headers from the front page and the rest of the site (which is set to use wrapper8 for the rest of the site pages which don't have specific headers). see: www.friendsofnamibianchildren.org Instead, very annoying, it applies wrapper8 to any new pages I add, thus applying the wrong template.
<?php if(is_front_page()) {?>
<div class="wrapper">
<?php } else { ?>
<div class="wrapper8">
<?php }?>
<?php if (is_page('About Us')) {?>
<div class="wrapper2">
<?php }?>
<?php if (is_page('Our Work')) {?>
<div class="wrapper3">
<?php }?>
<?php if (is_page('Get Involved')) {?>
<div class="wrapper4">
<?php }?>
<?php if (is_page('About Namibia')) {?>
<div class="wrapper5">
<?php }?>
<?php if (is_page('Donate')) {?>
<div class="wrapper6">
<?php }?>
<?php if (is_page('Photos')) {?>
<div class="wrapper7">
<?php }?>
If try to add these 3 lines below (basically a new Sitemap page with a 'wrapper9' header) then all the site templates get messed up.
<?php if (is_page('Sitemap')) {?>
<div class="wrapper9">
<?php }?>
thanks.
