I’ve got a subdirectory in which I’d like to implement a completely different theme for my site (basically, its a sales letter).
Can someone tell me how to do that? Do I need to install a separate copy of wordpress in the subdirectory?
I’ve got a subdirectory in which I’d like to implement a completely different theme for my site (basically, its a sales letter).
Can someone tell me how to do that? Do I need to install a separate copy of wordpress in the subdirectory?
You must be logged in to post a comment.
To slightly sidestep your actual question, the template hierarchy allows you to have a custom handler for any post ID, category, taxonomy term, etc. That may be the quickest way to solve your problem: just create a template file that stands on its own and only serves request to one post (or category, or however the sales letter(s) are identified).
You don’t have to call
get_header()
,get_footer()
or any of the other template functions, so you’re free to have a completely different page structure for a single post on your site.You could load your stylesheets in (a hook) in your header. Then use wp_enqueue_style to load them on a per-site basis:
1.a) make a custom header file for page-template-file.php and use a custom header with a conditional tag (or just use a custom style sheet with a conditional tag).
then do something like this in your functions.php file:
So if you load this from the same subdirectory of your theme, then the you’ll register an additional stylesheet named exactly like the current directory (the stylesheet remains in the themes root directory). This way you can easily style each page the way you want. Plus you don’t load what you don’t need.