Switching Themes with PHP |
Switching Themes with PHP |
![]()
Post
#1
|
|
![]() ^ Mrs. Jonas ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 592 Joined: Apr 2005 Member No: 263,313 ![]() |
The closest I got when searching was this, and it didn't help.
I'm working on another website, and want to be able to switch themes, and like Heather had said, switch it on all pages. It's NOT wordpress, by the way. I have header.inc and footer.inc, and then index.php which includes both. I know that I can make header2.inc and footer2.inc, but I don't know how to make some sort of dropdown where you can choose whether you want theme 1 or theme 2, and how to make it include the appropriate header and footer. I tried googling it, but only came up with Wordpress and B2 hacks, which isn't helping me at all. |
|
|
![]() |
![]()
Post
#2
|
|
![]() ^ Mrs. Jonas ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 592 Joined: Apr 2005 Member No: 263,313 ![]() |
Well, I haven't adapted it to work with wordpress yet. The site I'm working on is just a site... but if and when I get it figured out, you'll be the first to know. *writes post-it note* But my guess is that you just create multiple wordpress themes and then just download the plugin (I think there's a link to it in the first post of this thread) to switch between themes. I'm not sure... it might get hairy when you start using other pages.
Anyhow. PROBLEM. So I followed that tutorial completely, and... well, it works, for the most part. It switches the theme, but when you go back to browsing the original site, it goes back to the original theme. Here's the site: http://writersblock.melilyn.com/index.php [it's still under a lot of construction, and the themes are just example themes, but if you click on 'theme switcher' you'll see what I mean.] HELP? ![]() |
|
|
![]() ![]() |