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...
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...
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');
?>
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
The code sample is enough.
@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');
?>
umm, how many "<?php" do ya need?
Whoa, partner, do not credit me as an author, SVP.
@dsader: caught it later. thanks for the heads up. :)
« Previous 1 2 3