The MU forums have moved to WordPress.org

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

  1. maxaud
    Member
    Posted 14 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 http://wpmudevorg.wordpress.com/project/site-based-mu-plugins 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
    Moderator
    Posted 14 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
    Member
    Posted 14 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: Domain1.com & Domain2.com 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 Domain1.com, and I only want Theme1, Theme2, and PremiumTheme1 to be able to be visible on Domain2.com (both in themes.php and wpmu-themes.php).

    I don't want Site Admins on Domain1.com to be able to even see the themes available to Domain2.com (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.

    EDIT: http://core.trac.wordpress.org/ticket/12195
    Looks like Scribu added the changes to the WordPress trac as a patch for 3.0.

  4. DeannaS
    Member
    Posted 14 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: http://wpmudevorg.wordpress.com/project/site-based-mu-plugins

  5. maxaud
    Member
    Posted 14 years ago #

    DeannaS, thanks for your reply.

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

  6. marien
    Member
    Posted 14 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
    Member
    Posted 14 years ago #

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

  8. maxaud
    Member
    Posted 14 years ago #

    marien,
    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

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

  9. maxaud
    Member
    Posted 14 years ago #

    Created a simple plugin for this here:
    http://wordpress.org/extend/plugins/multisite-themes/

About this Topic