Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the central media library to the "main" site? #93

Open
CNiessen opened this issue Jul 18, 2023 · 1 comment
Open

How to change the central media library to the "main" site? #93

CNiessen opened this issue Jul 18, 2023 · 1 comment

Comments

@CNiessen
Copy link

CNiessen commented Jul 18, 2023

Hi,

We just installed and activated the plugin.
We have fairmas.com (English site) as our main site. I realized that the central library (where you have the possibility to delete) is the German site (fairmas.com/de). We are not sure how this happened. Can you guide me how to change this to the EN one instead?

Also, can you please confirm that when we upload an image on the main central library (fairmas.com English site), for example "ABC.png (50kb)", as it will show up in our /de, /es and /fr multi-site library as well. Does this mean that the main storage would only be just for the original single file of 50kb and would not store 200kb (50kb x 4 multisites)?

Thank you in advance for your help,
CNiessen

@CNiessen CNiessen changed the title Cannot delete uploaded media from main library How to change the central media library to the "main" site? Jul 18, 2023
@Johannf78
Copy link

Install the code snippet plugin.
https://wordpress.org/plugins/code-snippets/

Add this this code on the Network Admin site.

//Change the location of the shared network media libary to site one, (Default is site two)
add_filter( 'network-media-library/site_id', function( $site_id ) {
//Change this number to the site you want as the source of your shared media library
return 1;
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants