Theme Switcher
-
Well, I’m not too sure if this is in the right category. But moving along. I’m trying to have a theme switcher (i.e., skinning my site using the theme switcher plugin), so people can access multiple themes at once.
But in things like a dynamic include, the code is specific to one pair of headers a€?? and one pair only. Here’s my code:
<?php $page = basename($_SERVER['QUERY_STRING']);
include('wp-content/themes/foliage/header.php');if(!$page){
include('reverie/index.php');
} else {
if(file_exists('reverie/'.$page.'.php')){
include('reverie/'.$page.'.php');
} else {
echo('This include does not exist! Please try again.');
}
}include('wp-content/themes/foliage/footer.php');
?>I’m not sure how to change the code so the dynamic includes adjust the headers and footers of the theme that the user is using. Wow… I think that makes sense.
- The topic ‘Theme Switcher’ is closed to new replies.