WordPress.org

Ready to get started?Download WordPress

Forums

How do I test themes on live blog? (13 posts)

  1. slobizman
    Member
    Posted 9 years ago #

    Newbie question: So far, I've been making changes to my theme, live. If I make a mistake, every visitor sees it. Is there a better way to do this short of copying the entire wp site?

    I've seen something called Theme Switcher on sites and it lets users switch themes. Is there a way that only I, as the administrator, can change the theme to a "testing" copy of my current theme and them make changes to that theme while everyone else is using the real theme? Do I need Theme Switcher for this?

    Thanks!

  2. Cypher
    Member
    Posted 9 years ago #

    The easiest thing I've found is to use an entirely seperate test blog on a subdomain for all your testing purposes. This allows you to recover the blog from scratch if you do mess it up while not messing around with your main blog.

    Regards

  3. moshu
    Member
    Posted 9 years ago #

  4. slobizman
    Member
    Posted 9 years ago #

    Thanks you guys. I figured out a way by reading this topic:

    http://www.googletutor.com/wp-admin/theme-editor.php?file=wp-content/themes/gila/sidebar.php&theme=Gila

    I installed Theme Switcher plugin and this is the code I put in my theme:

    <?php get_currentuserinfo(); global $user_level; if ($user_level > 8) { ?>

      <h2>Theme Switcher</h2>

    • <?php get_theme_switcher() ?>

    <?php } ?>

    Works slick!

  5. slobizman
    Member
    Posted 9 years ago #

    Oops, not all the code went into the message properly (the UL and ending UL), but you get the idea.

  6. moshu
    Member
    Posted 9 years ago #

    It's time to learn to put the code in between backsticks --> see below the text area here :)

  7. Kafkaesqui

    Posted 9 years ago #

    "backsticks"

    Or backticks. But I like your word more. :)

  8. moshu
    Member
    Posted 9 years ago #

    :)
    for a foreigner none of them makes sense...

  9. vkaryl
    Member
    Posted 9 years ago #

    Um. Moshu, I'm a statesider, and I had no clue for the LONGEST time what a "backtick" was.... foreign is as foreign does?

  10. rvblog
    Member
    Posted 9 years ago #

    @slobizman

    Now that you know how to use backticks - can you post the complete code that you used.

    Thanks

  11. slobizman
    Member
    Posted 9 years ago #

    Thanks for the backticks info. I'm going to try it here because I'm not sure if I've got the right key for the backtick:

    <h2>testing H2 tag</h2>
    and another here <h1>testing H1 tag</h1>

  12. slobizman
    Member
    Posted 9 years ago #

    Worked! Thanks.

  13. hscampbell
    Member
    Posted 9 years ago #

    Hi -- I'd like to use http://boren.nu/archives/2005/03/08/preview-theme-plugin/ but when I click on the link on the site, it opens up a page of code.

    This doesn't happen when I click on the theme switcher link (although that's not what I'm interested in.)

    Any advice on how I get this plug in on my server?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.