So this is not a transferrable question to other sites out there, but I am creating a Wordpress multisite for internal use at our office and instead of duplicating the theme CSS, JS, and other assets I created it all into one MU-Plugin.
I know this is not standard practice, but I am the only one managing the sites, and it is more a set up and forget.
At the moment I am currently calling on a
base.css that has some normalisation and then any unique css is being called from:
$themeName = wp_get_theme()->get('TextDomain'); $themeName = get_template(); wp_enqueue_style( 'solo_css', network_home_url( $themeName . '.css'), array( 'main_css' ), globalVersion );
However, because I am manually doing al this, and hoping to expand the multisite soon to other ventures internally I don't want to create a
solo_css file for each of the new sites.
Is there a way to create the file in the plugin folder on theme activation? Again, I know it's not recommended practices or transferable, but something make the repetitive nature easier.