The MU forums have moved to WordPress.org

Default Roles at Signup (67 posts)

  1. scotm
    Member
    Posted 15 years ago #

    stumped. bumped...

    anyone have an idea how wpmu generates the top left tab with the new blog's title and link to the dashboard? see screenshot above...

  2. dsader
    Member
    Posted 15 years ago #

    scotm,

    Find the "blogswitcher" in wp-admin/includes/mu.php

    An old trick I use . . .

    Look for the "id" and add a { display: none; } to the admin css via an mu-plugin.

    <?php
    function ds_hide_tabs()
    {
    	$ds_hide_tabs = "
    	<style type=\"text/css\">
    		#dashmenu {
    		display: none;
    		}
    	</style>";
    print($ds_hide_tabs);
    }
    add_action('admin_head', 'ds_hide_tabs');
    ?>
  3. scotm
    Member
    Posted 15 years ago #

    dsader

    i've found the blogswitcher, but r u suggesting i add an "id" to the code you've provided above or is what you've given sufficient for the plugin?

    thx

  4. dsader
    Member
    Posted 15 years ago #

    The code sample is enough.

  5. scotm
    Member
    Posted 15 years ago #

    @dsader: getting an error. must have something out of line with code below.

    <?php
    /*
    Plugin Name: dsader_hide_tabs
    Plugin URI:
    Description:
    Version:
    Author: dsader
    Author URI:
    */

    <?php
    function ds_hide_tabs()
    {
    $ds_hide_tabs = "
    <style type=\"text/css\">
    #dashmenu {
    display: none;
    }
    </style>";
    print($ds_hide_tabs);
    }
    add_action('admin_head', 'ds_hide_tabs');
    ?>

  6. dsader
    Member
    Posted 15 years ago #

    umm, how many "<?php" do ya need?

    Whoa, partner, do not credit me as an author, SVP.

  7. scotm
    Member
    Posted 15 years ago #

    @dsader: caught it later. thanks for the heads up. :)

About this Topic