The MU forums have moved to

Site Specific Themes - Limit different themes to different sites (9 posts)

  1. maxaud
    Posted 13 years ago #

    I need to limit themes on my WordPress MU to specific themes for different MU sites.

    Does anyone know how I can accomplish this?

    Similar to except for with themes instead of plugins.

    Thanks in advance.

    Looking at User-Themes Revisited but it looks like it may be overkill and I don't have the need for the editor.

  2. andrea_r
    Posted 13 years ago #

    Uh, yeah. Real simple.

    Go to Site Admin -> Themes. Disable the ones you don't want everyone to have.

    Then go to Blogs -> Edit. Pick a blog to edit and on the right, you'll see the disabled themes with checkboxes. Check the ones you want to enable for that blog only.

    repeat as needed.

  3. maxaud
    Posted 13 years ago #

    It's a little more complicated than that.

    I have a multi-site setup.
    I need different themes for each wpmu 'site.'

    Example: & running on the same WordPress as sites (not blogs).
    I have Theme1, Theme2, Theme3, Theme4, and PremiumTheme1.

    Let's say that I want all themes, except for PremiumTheme1 to show up in the 'Site Admin' for, and I only want Theme1, Theme2, and PremiumTheme1 to be able to be visible on (both in themes.php and wpmu-themes.php).

    I don't want Site Admins on to be able to even see the themes available to (and vice-versa).

    I'd imagine a filter on the get_themes function would be able to do the trick but there isn't one and I don't want to modify the core.

    Looks like Scribu added the changes to the WordPress trac as a patch for 3.0.

  4. DeannaS
    Posted 13 years ago #

    There was a plugin the the wpmudev site that let you set up specific plugins by site. It did it by having plugin folders named the same as the site domain, and then only including the correct folder for the site. Possibly something similar could be done with themes?

    Here it is:

  5. maxaud
    Posted 13 years ago #

    DeannaS, thanks for your reply.

    I actually linked to that plugin in my first post :)

  6. marien
    Posted 13 years ago #

    Go to the site admin view, make sure the theme is not active site-wide.

    Then just go to every blog, the settings, and mark the themes you want the user to see.

    hope this helps.

  7. DeannaS
    Posted 13 years ago #

    @maxaud - oops. I should read more closely. :)

  8. maxaud
    Posted 13 years ago #

    As stated in my second posting. This isn't what I'm looking for. It's more of a unique request. I was able to achieve what was needed by using the register_theme_directory function

    No problem. Thanks for your reply and interest in helping me.

  9. maxaud
    Posted 13 years ago #

    Created a simple plugin for this here:

About this Topic