Changing the default theme

Posted by Andrea under Hacks, Themes

Let’s face it, the default theme is ugly. Sure it was cool way back when, but now everyone has rounded corners and big blue headers. There may come a time when you would like to have the default theme on signup be something else.

For this, I am going to assume you’ve already picked another theme you like and tested it to make sure it works and behaves liek expected. Surf on in to your server, however you like. Find the default theme folder in wp-content/themes/. Tip: it’s called “default”. ;) Rename the folder to something like default-old.

Now, find your new theme folder with the theme you like. Rename that folder to “default” (no quotes).

Seriously, that’s it. Withoin the code itself, it is only the folder name that is used in the case of new blog setup and to have a theme to revert to should a previously selected theme be removed.

If you want, you can disable Kubrick (the original default theme) so users cannot select it, by going to Site Admin -> Themes and click the “NO” radio button. Don’t forget to save your changes.

I’d also like to remind you to note that you made this change in your own personal changelog file. This helps by keeping track of any changes you made so you can repeat them in case of an upgrade, a re-install or some tragic unforseen event.

Hey, it can happen :D and it’s a good habit to get into.

5 Responses to “Changing the default theme”

  1. Brock Says:

    Like most things “WP”, I didn’t know it was that easy.

  2. WPMu Tutorials (Week 2) at bavatuesdays Says:

    [...] Changing the default theme is yet another hack that takes you through changing the default theme for WPMu. [...]

  3. Mat_ Says:

    It’s a good tip! But i’m trying to create my own theme, and to add some functions. It’s a good training !
    And trying to have bbpress working too with the same theme is “la cerise sur le gateau” like we say in french ;)

  4. laurent Says:

    thanks, it’s simple light, speed, and cool !

  5. Houston Web Design Says:

    Nice! I love it - one more question -

    How can I have a theme enabled for my blog (the main blog), but not allow users to see it when they can select their themes? I don’t want them to have my theme…

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image



google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); hasloaded = 1; } for (i = 0; i < 5; i++) { var elem = $("bnc_original_" + i); if (elem) { if (curstate) { elem.show(); } else { elem.hide(); } } } for (i = 0; i < 5; i++) { var elem = $("bnc_trans_" + i); if (elem) { if (curstate) { elem.hide(); } else { elem.show(); } } } if (curstate) { $("bnc_trans_state1").show(); $("bnc_trans_state2").hide(); curstate = 0; } else { $("bnc_trans_state1").hide(); $("bnc_trans_state2").show(); curstate = 1; } } function bnc_detect_div(div_id) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; if (text.length > 0) { google.language.detect(text, function(result) { if (!result.error) { if (result.language != "en") { if (result.confidence > 0.25) { $("bnc_translating").show(); bnc_xlate_div(result.language, div_id, "en"); } } } } ); } } } function bnc_xlate_div(src_lang,div_id,o_lang) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; google.language.translate(text, src_lang, o_lang, function(result) { var translated = document.getElementById(div_id); if (result.translation) { translated.innerHTML = result.translation; } }); } } function bnc_lang_callback() { bnc_xlate_div("en", "bnc_lang_i_0_26", "en"); bnc_xlate_div("en", "bnc_lang_i_1_26", "en"); bnc_xlate_div("en", "bnc_lang_i_2_26", "en"); bnc_xlate_div("en", "bnc_lang_i_3_26", "en"); bnc_xlate_div("en", "bnc_lang_i_4_26", "en"); bnc_xlate_div("en", "bnc_lang_i_5_26", "en"); bnc_xlate_div("en", "bnc_lang_i_6_26", "en"); } function bnc_startup() { bnc_xlate_div("en", "bnc_translate_info", "en"); bnc_xlate_div("en", "bnc_translate_info2", "en"); bnc_detect_div("bnc_lang_i_0_26");bnc_detect_div("bnc_lang_i_1_26");bnc_detect_div("bnc_lang_i_2_26");bnc_detect_div("bnc_lang_i_3_26");bnc_detect_div("bnc_lang_i_4_26");bnc_detect_div("bnc_lang_i_5_26");bnc_detect_div("bnc_lang_i_6_26"); } google.setOnLoadCallback(bnc_startup);
Close
E-mail It
This blog has been fine-tuned with 13 WordPress Tweaks.