Forums

Theme Switcher question (6 posts)

  1. insoliloquy
    Member
    Posted 5 years ago #

    I just recently installed the Theme Switcher Plugin and I'm a little confused right now.

    All of my pages call up header.php at the very top. I had just skinned my site (but found out that it didn't work) and my header.php file has all the skin info. If I use the Theme Switcher to change themes (instead of using skinning), what should I put in the header.php file? Thanks in advance!

  2. moshu
    Member
    Posted 5 years ago #

    Well, we don't know anything about skinning. We don't "skin" WP, we just use different themes... so nothing else is required in the header.php. BTW, Every theme has it's own header.php!

  3. insoliloquy
    Member
    Posted 5 years ago #

    Well, all of my pages call up "header.php" at the top, and in my header I have the link to my stylesheet. But since I'm using the theme switcher thing, the style sheets will be different for each theme. How should I do that? (I'm sorry if I'm missing something here, lol)

    But should I just get rid of my main header.php? Would all of my pages call up the right header though?

  4. moshu
    Member
    Posted 5 years ago #

    If you are not using the standard theme system of WP - then I am clueless (and this forum cannot help you).

  5. insoliloquy
    Member
    Posted 5 years ago #

    Okay, well thanks for helping!

  6. sadish
    Member
    Posted 5 years ago #

    @insoliloquy,

    If you are using the theme-switcher plugin, you just have to put it under plugins and activate it.

    It takes care of the rest and you dont need to change the header.php file for that.

    the way it works is, it creates a small cookie on the visitor's machine to store the theme that he selected.
    so when the page is loaded, if the plugin is activated, it comes into play and look for the 'wptheme' cookie in the request and then it calls that theme's index.php for handling this request.

    while all others will be viewing your site, with whatever theme you have selected as the 'current' theme, only this person will see the site in the theme of his choice.

    Hope that helps.
    Thanks
    Sadish

Topic Closed

This topic has been closed to new replies.

About this Topic