• Resolved Olly – OWMC

    (@olly-owmc)


    I build extremely custom sites, specifically to make it impossible for my clients to break stuff.

    With a recent WP update, I now have to manually set CSS to hide this new “Customise” item that appears in the admin bar. Screenshot here.

    I now have to go through dozens of my clients websites inserting code into each functions.php file to hide this stability flaw.

    Whoever did this is not getting any bitcoin donations from me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Serious inquiry, here..

    I don’t think the link in the admin bar is any different than going to Dashboard > Appearance > Themes > Customize.

    Have your clients not already had access to Dashboard > Appearance > Themes > Customize on their own WordPress sites in the past? Or, do you already include the function to remove access to the customize page features by default in your themes?

    Reference: Appearance Customize Screen

    I think this should probably remove the customize link from the admin bar when placed in your production themes function.php file.

    add_action( 'admin_bar_menu', 'remove_customize', 999 );
    
    function remove_customize( $wp_admin_bar ) {
    	$wp_admin_bar->remove_node( 'customize' );
    }

    On the plus side, they put /wp-admin/widgets.php back into the drop-down under the Blog’s name and got rid of the link that went into the Customizer.

    I can confirm the above code remove Customize from the Admin Bar.

    Thread Starter Olly – OWMC

    (@olly-owmc)

    @claytonjames my philosophy regarding client access to the dashboard is to only let them see what they need and to completely remove all potential for them to break stuff. I generally use the Editor role for their accounts, in tandem with functions removing all the stuff they can use to break stuff from view.

    As it so happens, luckily the Customize item in the admin bar is not visible fro Editors.

    Still, I don’t like clients who find they have time to get experimental with wordpress. These people should be focusing on their role and not wasting company time. I could go on ad-nauseum about why the UX for clients should absolutely water tight. Life’s too short to be wasting time. I mean honestly what’s next, university courses for PA’s in how to use the Admin role in WordPress? UX applies to site adminstrators as it does to their users. Giving people a million options is. in this day and age, idiotic, imho.

    These people should be focusing on their role and not wasting company time…
    …Life’s too short to be wasting time.

    Yeah, I agree.

    And I admire your ability to openly express an apparently confident belief in the sustainability of a dictatorial philosophy – unless, of course you’re in a corporate situation where it’s actually your name on all of your clients paychecks. In which case, I’m right there with ‘ya, brother.. crack that whip!

    Hope the theme updates don’t turn out to be too much of a hassle. Good luck to you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Customize" in admin bar is not welcome’ is closed to new replies.