[wp-hackers] how to apply a theme only for a page

Joaquin Rodriguez Montero yojoaquin at gmail.com
Thu Apr 22 01:38:45 UTC 2010


Why don't you use conditionals?

<?php if (is_page('different')) { get_header('alt'); } else { get_header();
} ?>

<div id="page" class="<?php if (is_page('different')) { echo
'new-template-class'; } else { echo'regular-template';  } ?>

<?php if (is_page('different')) { get_footer('alt'); } else { get_footer();
} ?>

Chocks


More information about the wp-hackers mailing list