The MU forums have moved to WordPress.org

enable and disable themes in mainblog vs everywhere else (4 posts)

  1. arnonel
    Member
    Posted 16 years ago #

    pls can someone explain how to do this, thanks.

  2. mysorehead
    Member
    Posted 16 years ago #

    http://mu.wordpress.org/forums/topic.php?id=5000&page&replies=13

    If you want to change the location of the themes directory you can use a filter, in your case you can change the if statement to match the blog_id you want to restrict.

    eg.

    add_filter('theme_root', 'rgo_group_blog_theme');

    function rgo_group_blog_theme($thedir) {
    if ( is_group_blog() ) {
    return ABSPATH . "wp-content/mu-plugins/group_themes";
    } else {
    return $thedir;
    }
    }

  3. andrea_r
    Moderator
    Posted 16 years ago #

    No, no no. You are making it too complicated.

    http://wpmututorials.com/themes/enabling-a-theme-for-just-one-blog/

  4. PioneerSkies
    Member
    Posted 15 years ago #

    OMG! Make this feature more visible! I've searched too long for it!
    BTW tnx!!! (also if this replay come 9 months after the last one!)

About this Topic

  • Started 16 years ago by arnonel
  • Latest reply from PioneerSkies