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

Khaleel Abdul Karim webmaster887 at gmail.com
Thu Apr 22 08:52:07 UTC 2010


but the problems i have made this as a plugin..
i have coded the apply theme in 'the_post' action hook..
the theme will be fetched from post_meta to apply .. Thanks for all your
contribution ,...

On Thu, Apr 22, 2010 at 7:08 AM, Joaquin Rodriguez Montero <
yojoaquin at gmail.com> wrote:

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
~~~~~~~~~~~~~~~~~~
http://khaleel.isgreat.org
Khaleel Abdul Karim
Thazhathuveedu
Erumely


More information about the wp-hackers mailing list