• Hi. I’m not very good with php, but is there a way to hide the sidebar in admin from users who are level 1 and below? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The complete sidebar?

    You’ll have to make a few changes in wp-admin/index.php; just locate this div in the file:

    <div id="zeitgeist">

    and place an if statement tag above it which tests user level:

    <?php if($user_level > 1) : ?>
    <div id="zeitgeist">

    Then down a bit look for:

    <h2><?php _e('Dashboard'); ?></h2>

    and close up your if statement just before it.

    <?php endif; ?>

    <h2><?php _e('Dashboard'); ?></h2>

    Note: Back up any sources files before editing them, and comment your changes for future reference.

    Thread Starter zarastudios

    (@zarastudios)

    Great! That’s exactly what I needed to know. Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding sidebar in admin from some users’ is closed to new replies.