5942marine
Member
Posted 2 years ago #
Not sure if this is possible, but I was looking at http://codex.wordpress.org/Pages
Having a custom template for a individual page isn't the problem, but is it possible to have a whole separate` theme for a particular page.
So if I'm using the default theme throughout the site, for example, but on the page name "community", it uses a separate theme.
Anyone accomplish this?
brandnewaquarium
Member
Posted 2 years ago #
Yah;
Go ahead and create the theme for the page that you want to use. At the top of it add something like:
<?
/*<p>
Template Name: Community</p>
<p>*/
?>
Upload that to your theme's directory.
Go to the page you want to apply the theme to and to your right you will see "Use Template" and a drop down list. Select the theme you wish to use, and click on "Update page."
Provided you aren't receiving the same error as me, the new theme should show on that page.
5942marine
Member
Posted 2 years ago #
So the snippet you provided, do I save it as, community.php? Or do I add it on the theme file, such as single.php or home.php on the top?
5942marine
Member
Posted 2 years ago #
So the snippet you provided, do I save it as, community.php?
Yes, see here
Peter