• Even with all of the front-end admin bar options disabled, the “Edit Page” button still appears. Is there any way to remove this from within Adminimize, or do I need to remove manually?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Bueltge

    (@bueltge)

    Do you have the ‘edit page’ item inside the settings of Adminimize Front-End admin bar settings? If not, run to the front-end as administrator to see this item and regenerate the settings include this item for your settings page of Adminimize.

    Thread Starter coleatkinson1

    (@coleatkinson1)

    Yes, the setting is there, however it doesn’t do anything. I fixed the issue with a code snippet that was included in another issue thread:

    add_action( ‘admin_bar_menu’, ‘remove_wp_logo’, 999 );
    
    function remove_wp_logo( $wp_admin_bar ) {
    $wp_admin_bar->remove_node( ‘edit’ );
    }

    The only issue is that this will also remove the ‘edit product’ that appears for shop managers/admins of woocommerce, so some extra code is needed to target only the ‘edit page’ button.

    Plugin Author Frank Bueltge

    (@bueltge)

    But if you have the slug, here edit you have also the possibility to add this as custom option to the settings of the Admin Bar front-end settings. So is a custom code not necessary.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove “Edit Page” on front-end admin bar’ is closed to new replies.