slobizman
Member
Posted 7 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!
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
slobizman
Member
Posted 7 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!
slobizman
Member
Posted 7 years ago #
Oops, not all the code went into the message properly (the UL and ending UL), but you get the idea.
It's time to learn to put the code in between backsticks --> see below the text area here :)
"backsticks"
Or backticks. But I like your word more. :)
:)
for a foreigner none of them makes sense...
Um. Moshu, I'm a statesider, and I had no clue for the LONGEST time what a "backtick" was.... foreign is as foreign does?
@slobizman
Now that you know how to use backticks - can you post the complete code that you used.
Thanks
slobizman
Member
Posted 7 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>
slobizman
Member
Posted 7 years ago #
hscampbell
Member
Posted 6 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?