Make different sites on multisite reference same script

Hi this is what I did to solve it: add_filter( ‘script_loader_src’, ‘change_src’ ); add_filter( ‘style_loader_src’, ‘change_src’ ); function change_src( $url ) { if( is_admin() ) return $url; // Don’t filter admin area return str_replace( site_url(), ‘www.mysite.com/mydefaultnetworksite’, $url ); } I’m using both those filters because I want it to apply to script and stylesheet urls. … Read more

How can I demonstrate themes well?

Use a multisite installation. Let the main site be your announcement page and at least on sub-site the theme demo site. Then you can use special content like WP Test on that site. Some themes might require special content, like a shop theme that needs products. You can use another, separate sub-site for these themes.

Aliasing a subdomain on a wordpress network

So far as we know, we can control the subdomain by the WordPress subdomain network and apache rewrite rule(nginx works too.). The subdomain is a rule, so you can’t set it directyly in .htaccess by using your http://www.supercooldomain.com, but you can set another apacahe virutal host use your cooldomain. There is another wordpress plugin may … Read more

Multisite and plugins options

Back when Multisite first appeared, there were multiple blogs in a single site. The *_site_option functions are from that older Multisite era. Now in current Multisite you have multiple sites in a network, so the meaning of “site” has made a confusing change. In the context of these functions, think of them as network functions … Read more