How can I disable RankMath from admin menu bar(top one)

#14348
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add the following code to your theme’s functions.php file to remove the Rank Math node from the admin bar:

    /*
     * Snippet for removing the Rank Math admin node
     * from the WordPress admin bar
     * 
     */
    
    function wps_admin_bar() {
        global $wp_admin_bar;
    	
        $wp_admin_bar->remove_node('rank-math');
    }
    add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );

    Looking forward to helping you. Thank you.

    ​​​​​​

    This action also disable the counter of visits from admin on dashboard site to not contaminate the analytics statistics ?
    if is not, how can i reach this ?

    • This reply was modified 4 years, 8 months ago by Mario Barretta. Reason: adding refer to Google nalaytics
    Todd
    Rank Math free

    Hi Mario,

    This only removes the Rank Math option from the admin bar – just like the user asked.

    Everything else remains the same on your website. This has nothing to do with Google Analytics which will work the same way as it was working before.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘How can I disable RankMath from admin menu bar(top one)’ is closed to new replies.