• Sorry, I didn’t know how to word that question.
    I have a theme changer plugin.

    I have two themes (A and B)
    When A is selected on the WP admin page and the actual website link, I see the (exernal PHP) pages in that theme, and everything’s fine.
    When I select theme B from the website, and not the WP admin page, it comes up, but the PHP pages show up in theme A, as it is selected on the WP admin. How do I change this so that the external pages change along with the theme on the actual blog?

    I have this code on my pages:

    <?php require_once("/PATH TO/wp/wp-blog-header.php");?>
    <?php get_header();?><?php get_sidebar();?>
    
    Content here...
    
    <?php include ("form.php");?>

    And they work on the selected (WP admin) theme.
    Please help! I think it’s something to do with the WP-blog-header?

Viewing 1 replies (of 1 total)
  • No, it is the nature of how things work.

    When you “change” the theme on the frontend (aka from the website) you don’t really change the settings stored in the database, just in your own browser – based on cookies.
    In the database the “selected_theme” is still the one defined in the wp-admin.
    So, it just does what it is supposed to do.

Viewing 1 replies (of 1 total)
  • The topic ‘Different theme on pages when clicked by viewers’ is closed to new replies.