Title: Compatibility with WP multisite?
Last modified: August 22, 2016

---

# Compatibility with WP multisite?

 *  Resolved [TomJohnson](https://wordpress.org/support/users/tomjohnson/)
 * (@tomjohnson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/)
 * I’m using a WP multisite network and would like to use this plugin. I think it
   will work fine, except there’s one small problem. When specifying the stylesheet
   paths, the resulting output goes to something like this:
 * href=”[theme path]/stylesheet.css
 * However, with WP Multisite, the path is slightly different. Rather than going
   to the specific theme for the site, it goes to the home site’s theme:
 * href=”[home site theme path]/stylesheet.css
 * Can you add some kind of option for Multisite installations that renders the 
   correct path?
 * Alternatively, can you add a check box that says: “Disable relative paths” or
   something? That way I could enter the absolute path to my stylesheet.
 * Thanks,
 * Tom
 * [https://wordpress.org/plugins/wp-user-stylesheet-switcher/](https://wordpress.org/plugins/wp-user-stylesheet-switcher/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [vgstef](https://wordpress.org/support/users/vgstef/)
 * (@vgstef)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213359)
 * Interesting. Is your multisite configured sor sub-domains or sub-directories?
 * From what I read, themes in multisite are the same accross all the sites : [http://codex.wordpress.org/Multisite_Network_Administration#Themes](http://codex.wordpress.org/Multisite_Network_Administration#Themes)
   So it’s the normal WordPress behavior to link to the home site. In addition, 
   I can’t find a wordpress php function to get the theme directory of a sub-site(
   probably because there are no theme directory for them).
 * The only option I see would be to have a checkbox or dropdown list at the top
   of the setting page to chose between “theme relative path” or “absolu path”.
 *  Thread Starter [TomJohnson](https://wordpress.org/support/users/tomjohnson/)
 * (@tomjohnson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213403)
 * I’m not sure what the template directory URL would be, but I think it might just
   be `get_bloginfo('template_directory')`.
 * In looking at the stylesheet URL in the source code of the output of my site 
   when the stylesheet switcher plugin, it says something like:
 * [http://example.com/wp/trek/wp-content/themes/twentytwelve/style.css](http://example.com/wp/trek/wp-content/themes/twentytwelve/style.css)
 * Where wp is the base site and trek is the subsite.
 * The real path should be:
    [http://example.com/wp/wp-content/themes/twentytwelve/style.css](http://example.com/wp/wp-content/themes/twentytwelve/style.css)
 *  Plugin Author [vgstef](https://wordpress.org/support/users/vgstef/)
 * (@vgstef)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213436)
 * And is your Multisite configured for subdomains or for subdirectories? This can
   influence WordPress url functions.
 *  Thread Starter [TomJohnson](https://wordpress.org/support/users/tomjohnson/)
 * (@tomjohnson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213438)
 * sorry, forgot to mention that. It is configured for subdirectories.
 *  Plugin Author [vgstef](https://wordpress.org/support/users/vgstef/)
 * (@vgstef)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213529)
 * I tested, and my plugin works with multisite too. If you’ve put your css files
   in your theme folder, it should be working.
 * In your example, “[http://example.com/wp/trek/wp-content/themes/twentytwelve/style.css&#8221](http://example.com/wp/trek/wp-content/themes/twentytwelve/style.css&#8221);
   is correct. But WordPress multisite needs to be correctly configured with .htaccess
   to rewrite the url. Please verify that.
 * Can you share the url of your site so I can have a look? Are you working in local
   or on a server?
 *  Thread Starter [TomJohnson](https://wordpress.org/support/users/tomjohnson/)
 * (@tomjohnson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213531)
 * Awesome. It does work. Did you have to update the plugin to make it work with
   multisite, or was I just doing something wrong? Either way, thank you. It’s an
   awesome plugin.
 *  Plugin Author [vgstef](https://wordpress.org/support/users/vgstef/)
 * (@vgstef)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213533)
 * Great!
    Nope, I did not change anything. I’m happy it works and you enjoy it.
   If you want, you could evaluate/review the plugin. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Compatibility with WP multisite?’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-stylesheet-switcher/assets/icon.svg?rev=982756)
 * [WP User Stylesheet Switcher](https://wordpress.org/plugins/wp-user-stylesheet-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-stylesheet-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [vgstef](https://wordpress.org/support/users/vgstef/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/compatibility-with-wp-multisite/#post-5213533)
 * Status: resolved