Setting new default theme for future created blogs on multisite (18 posts)

  1. cavamondo
    Posted 5 years ago #

    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.


  2. 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.

  3. cavamondo
    Posted 5 years ago #

    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?

  4. 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.

  5. cavamondo
    Posted 5 years ago #

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

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

  7. 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.

  8. cavamondo
    Posted 5 years ago #

    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

  9. They are called child themes.

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

  10. cavamondo
    Posted 5 years ago #

    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

  11. 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?

  12. cavamondo
    Posted 5 years ago #

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

  14. cavamondo
    Posted 5 years ago #

    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]

  15. 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.

  16. cavamondo
    Posted 5 years ago #

    Yeah can access the backend of the blog, and the theme its trying to set is blank ... i get the available themes listed below, but where its usually displaying what theme is set, there is none.

  17. Pick another theme. Does it even show your child theme?

    Basically, it can't find the theme and none is being set. So, white screen.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.