How To Show Multiple Demo Themes With One WordPress Install

6 replies
Does anyone know of a plugin or a way to have just one instance of WordPress installed while being able to show multiple themes?

I have multiple WP themes that I would like to demo on my website.
I don't want to install one particular theme. I just want to be able to demo one single theme when someone clicks on the demo link of that particular theme.

I have wordpress installed in a separate directory (called demo) and I put all of the themes in their own directories inside the demo directory. Is there a way to make wp call a theme and display it without actually having it installed in the wordpress, wp-content, themes directory?

Thank you for your help.

Peter
#demo #install #multiple #preview #show #themes #wordpress
  • Profile picture of the author mywebwork
    If you're up to doing some simple coding you'll find the current WordPress theme listed in the "wp_options" table in the MySQL database that WordPress uses. The option name is "current_theme" and its value is the actual name of the theme.

    If you only wanted specific themes you could just hard-code their names into a select box in a PHP file, then pass that on to the database. Essentially this is exactly what the WP administrator utility does when you change themes.

    Not sure if anyone has made a plugin to do this more elegantly, it seems like a really simple bit of code so there may indeed be one available. If there is I'm sure another Warrior will have the answer!

    Bill
    {{ DiscussionBoard.errors[703509].message }}
    • Profile picture of the author 1RisingStar
      Thank You Bill,

      I actually found a solution. I was able to finally find a plugin here:
      wordpress [dot] org/extend/plugins/theme-preview/ It's called the Theme Preview Plugin.

      It does exactly what I wanted. If you want to see how it works, you can check out the demos on my site at: wpreviewstore [dot] com

      Some of the functions don't work right since the themes are not actually installed, but it's good enough for me. I just wanted to display my themes so that visitors to my site could have a better idea of how they look.

      I hope this helps others who might be looking for something like this.

      Thanks again.

      Peter
      {{ DiscussionBoard.errors[705178].message }}
      • Profile picture of the author articlemaster
        Originally Posted by 1RisingStar View Post

        Thank You Bill,

        I actually found a solution. I was able to finally find a plugin here:
        wordpress [dot] org/extend/plugins/theme-preview/ It's called the Theme Preview Plugin.

        It does exactly what I wanted. If you want to see how it works, you can check out the demos on my site at: wpreviewstore [dot] com

        Some of the functions don't work right since the themes are not actually installed, but it's good enough for me. I just wanted to display my themes so that visitors to my site could have a better idea of how they look.

        I hope this helps others who might be looking for something like this.

        Thanks again.

        Peter
        Hello 1RisingStar you don't know how you helped me by replying here, actually what problem u had i have also that problem and i was experimenting on my sql and tried to do it manually but i never get any success and i was searching for the appropriate plugin for this and finally got the plugin here from you, this is really great discovery,you did a gr8 job by tell about this plugin.
        Signature
        {{ DiscussionBoard.errors[709193].message }}
        • Profile picture of the author 1RisingStar
          Hi Articlemaster,

          I'm glad I could help out. I spent a couple of days to find the right plugin.
          It works great except when you click on the links in the demo blog, it takes you back to the directory where wp is installed.
          So you're able to display your first page of your demo, but not any additional pages. That's my only problem with this plugin.
          {{ DiscussionBoard.errors[710510].message }}
  • Profile picture of the author mywebwork
    Hi Peter

    I figured someone would have written a Plugin to do this - nice find!

    Aloha

    Bill
    {{ DiscussionBoard.errors[705202].message }}
    • Profile picture of the author viane
      You can search google for it you will find many plugins which supports this type of option
      {{ DiscussionBoard.errors[708952].message }}

Trending Topics