Support » Plugins » An index as well as stylesheet switcher

  • Everytime I change my site design, I end up playing with the index as well as the stylesheet. I was wondering if anyone has a style and index.php styleswitcher? Before I get a friend to write one for me, thought I would make sure it hasn’t been done before.

Viewing 1 replies (of 1 total)
  • Except that he wants “a style and index.php styleswitcher” not just a style switcher. It is possible, but it isn’t easy and it can become a mess. You would need a copy of the index.php file for every style you supply. Then in you main index.php, this is all that would be there:

    $blog = 1;
    include ("wp-blog-header.php");
    include ( -set this to the path to the index.php you do want, based on the style name );

    The every thing would be in the individual files for each style. Here’s the kicker. If you want to change something, it has to be changed in every single one of those files.

Viewing 1 replies (of 1 total)
  • The topic ‘An index as well as stylesheet switcher’ is closed to new replies.