The MU forums have moved to

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

  1. arnonel
    Posted 16 years ago #

    pls can someone explain how to do this, thanks.

  2. mysorehead
    Posted 16 years ago #

    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.


    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
    Posted 16 years ago #

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

  4. PioneerSkies
    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