Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you trying to set a back-end language or do you want to change the language of your primary/root site in your MS installation?

    The back-end language can be set per-user in the user profile.

    For changing the language of the first blog you can tell MLP what language to use in Network Admin -> Sites

    This, however, will not change the actual post content and everything else in the site. So instead, you would need to tell WP what site ID to use as the default site. Unfortunately, this is a lot more involving, so make sure you are confident with that and have made neccessary backups.

    I am assuming you want to change which site shows up under yoursite.com/ (as opposed to yoursite.com/en or yoursite.com/es). Is that right?

    Is your Multisite a subdirectory installation? If so, you can try to do the following

    Editing this in your wp-config.php is the first part:

    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Change 1 to the blog ID of the site you want to use as the default. You then need to change your *_blogs table in your database. (So wp_blogs for example)

    You will see a columns called “paths” This is where you can change the URL of your blogs. Edit the paths according to your desired new setup and give it a try.

    Disclaimer: This is general Multisite maintenance and has nothing to do with MLP specifically. What I suggested is untested and may break your site. Be very careful with this and always be prepared to roll back your back-up when something goes wrong

    Hi
    I have a similar problem
    I set the first side https://www.cmtribe.org in English
    the secund Site https://www.cmtribe/de in German

    Now I want to deactivate the HTTP redirect because it causes me alot of trouble since I cant enter the english site any more my self. (Browser setting is German) i always get redirected to german site.
    But if i do that, everybody who comes gets to the english site and only 10% of the visitors are english speakers. Now how do I change the cmtribe.org to cmtribe.org/en and the cmtribe.org/de to cmtribe.org?

    I tried to do what you wrote (after backing up), but how do I find the Blog ID where is my*_blogs?

    Greetings
    Jacob

    Hi Jacob,

    *_blogs is the name of a table in your database, where * is your table prefix. If you didn’t customize the prefix, the full name of the table is wp_blogs.

    You can also find the IDs on the Sites page in the Network Admin, though. The URL is /wp-admin/network/sites.php.

    Kind regards,
    Thorsten

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to change default language from network admin’ is closed to new replies.