WordPress.org

Ready to get started?Download WordPress

Forums

how to test a theme that only I can see ? (14 posts)

  1. rvblog
    Member
    Posted 9 years ago #

    How can I test out a new theme on my site without making the theme active?

    I tried a plugin called "preview_theme.php" but all I got was errors when I activated it (I'm using WP 1.5 strayhorn)

    I would like to try out different changes to a theme and see the changes without others being able to see what I am working on.

    Is there a way to keep my site theme active for others to see while I am looking at the test theme?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Unless you develop on your own machine, about all I can think of doing it switching, looking, grabbing a screenshot and switching back.

  3. davincim
    Member
    Posted 9 years ago #

    Could you build a test blog? That's what I do. I have two separate installations using the same database.

    True, it can be accessed by anyone who knows the URL, but I don't publicize the blog to the world (pings are turned off, etc.).

  4. rvblog
    Member
    Posted 9 years ago #

    @podz:

    I have a laptop running windows xp pro - how do I develop on my own machine?

    @davincim:
    Is there a guide somewhere that explains how to build a test site - and how do I turn pings off (whatever they are)?

    Thanks

  5. Kafkaesqui

    Posted 9 years ago #

    http://www.tamba2.org.uk/wordpress/xampp/

    Along with my local setup for test and development, I use Ryan's ThemeSwitcher plugin:

    http://dev.wp-plugins.org/wiki/ThemeSwitcher

    And instead of adding the tag in my templates, I just use the url query to load a theme:

    http://my.site/?wptheme=My%20Test%20Theme

    %20 = space encoded for url

    I can set the theme back to my regular one the same way, or by deleting the wptheme cookie set for my site.

  6. davincim
    Member
    Posted 9 years ago #

    @rvblog: Luckily, I found the thread that outlines how to do a second installation: http://wordpress.org/support/topic.php?id=21779

  7. rvblog
    Member
    Posted 9 years ago #

    @Kafkaesqui:

    So if my test theme is called "Blue Theme", do I just activate the theme switcher plugin and then type in:

    http://my.site/?wptheme=Blue%20Theme

    in the browser address bar ?

  8. rvblog
    Member
    Posted 9 years ago #

    @davincim:

    The thread looks pretty straight forwards - thank you very much for your help

  9. Kafkaesqui

    Posted 9 years ago #

    rvblog, Yep, that's all it takes (with the plugin).

  10. rvblog
    Member
    Posted 9 years ago #

    @Kafkaesqui

    I get the same error with the theme-switcher.php plugin as I did with the preview_theme.php plugin

    the following error appears at the top of my admin panel immediately after I activate the plugin:

    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/mysite.com/httpdocs
    /wp-content/plugins/theme-switcher.php:2) in /usr/local/psa/home/vhosts/mysite.com/httpdocs
    /wp-admin/admin.php on line 6

    the error also occurs on line 7, 8 and 9

  11. Kafkaesqui

    Posted 9 years ago #

  12. rvblog
    Member
    Posted 9 years ago #

    thanks Kafkaesqui

  13. radial
    Member
    Posted 8 years ago #

    Does this theme switcher work with wp 2? i have uploaded the plugin, but it does not show up in my plugin listing

  14. radial
    Member
    Posted 8 years ago #

    nevermind that, my host is having some sort of old server/new server crap going on

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.