Support » Networking WordPress » Setting new default theme for future created blogs on multisite

  • I need to define what theme new blogs will use default. I have created a custom theme, and want users to have that set as default on their new blog, and not the twenty-ten.

    Anyone?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    No one will be shocked that Andrea has the answer 🙂

    http://wpmututorials.com/how-to/change-the-default-theme-for-sites-without-a-plugin/

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    http://wpmututorials.com/how-to/change-the-default-theme-for-sites-without-a-plugin/

    Basically, something like this on your config file:
    define('WP_DEFAULT_THEME', 'classic');

    where ‘classic’ is replaced with the folder name of your theme.

    I just get a white page and in the WP backend i get no theme defined. Is this because:

    – Should i define the theme name (in style.css) or the FTP folder them name
    – The theme name contains white spaces
    – Im using a sub theme to the bp-default … is here a way to define that?

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    It’s the name of the theme folder, like I said. And that’s the theme folder name on the server, wherever it is under wp-content/themes/.

    White screen always always means a php error, so it may not be able to find the theme.

    I hope, even if you’re using a child theme of bp-default, that you actually have it in the themes folder and not the buddypress plugin folder.

    Does it matter if there is white spaces or uppper case letters in the theme name folder (under wp-content/themes)

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Haven’t tried myself, but if you’re getting errors, then yes. (caps shouldn’t matter, I can see a space causing issues)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Spaces matter. 100% for sure. Don’t use spaces in folder/file names on Web Servers. Ever! Bad juju. 🙂

    And caps SHOULD only matter if you’re on a *nix server. Windows servers it does not.

    Ok, so it works with stand-alone themes. But it does not work with subthemes – for instance im using Buddypress and using a subtheme modding to the buddypress theme. Ive tried to set the subtheme as default theme, resulting in white page, guessing its because it then tries to use a sub theme as primary theme.

    Gues in order to make it work, i would have to make a stand alone theme or figure out somehow to define master and then subtheme

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    They are called child themes.

    I asked above if you have the child theme in the themes folder or not.

    Hehe yeah was just about to correct it to child theme.

    The bp-default theme is located in: /wp-content/plugins/buddypress/bp-themes

    The child theme is located in wp-content/themes

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Cool, as it should be.
    what’s your site?

    And since we’re dealing with a white screen, did you check your error logs yet?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    I thought you still had to move the bp-default theme into your themes folder… *ponder* *goes to play*

    Notice: Undefined index: pluginversion in /var/www/kiteboarding.dk/public_html/wp-content/plugins/maintenance-mode/inc.swg-plugin-framework.php on line 175

    Notice: Undefined property: stdClass::$displayed_user in /var/www/kiteboarding.dk/public_html/wp-content/plugins/buddypress/bp-core.php on line 1054

    Notice: Trying to get property of non-object in /var/www/kiteboarding.dk/public_html/wp-content/plugins/buddypress/bp-core.php on line 1054

    Notice: is_site_admin is deprecated since version 3.0! Use is_super_admin() instead. in /var/www/kiteboarding.dk/public_html/wp-includes/functions.php on line 3237

    [snipped for length]

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    No, not debug. Php error logs on the server, generated by the server. Look for a file called error_log.

    Can you login to the backend of that site? If so, what theme is it trying to set?

    Because it could be setting the theme just fine, but the theme may have an error in it.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Setting new default theme for future created blogs on multisite’ is closed to new replies.