disable manage comment

Hi,

How can I remove "manage comments" in the admin menu?
How can I change the wp logo at the left side of the menu?

  • Dimitris
    • Support Star

    Hey there kamhangmak,

    hope you're doing good and thanks for reaching us! :slight_smile:

    Could you please create a new MU plugin file like /wp-content/mu-plugins/admin-css.php (simply create /mu-plugins/ folder if doesn't exist) and insert the exact snippet in there:

    <?php
    add_action('admin_footer', 'my_admin_css');
    function my_admin_css() {
      if ( function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
        $sites = get_sites();
        foreach ( $sites as $site ) {
          echo '<style>#wp-admin-bar-blog-'.$site->blog_id.'-c { display: none; }</style>';
        }
      }
    }

    Let me know how that goes!
    Warm regards,
    Dimitris

  • Dimitris
    • Support Star

    Hey there kamhangmak,

    you can try to replace previous snippet with the following please?

    <?php
    add_action('admin_footer', 'my_admin_css');
    function my_admin_css() {
      if ( function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
        $sites = get_sites();
        foreach ( $sites as $site ) {
          echo '<style>#wp-admin-bar-blog-'.$site->blog_id.'-c { display: none; }</style>';
        }
        echo
        '<style>#wpadminbar .quicklinks li .blavatar {
          background: url(URL-TO-IMAGE);
          background-size: cover;
          background-repeat: no-repeat;
        }
        #wpadminbar .quicklinks li .blavatar:before {
          content: "";
        }</style>';
      }
    }

    Just keep in mind to replace URL-TO-IMAGE with the actual URL of the logo you want to use.

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.