Support

Account

Home Forums Backend Issues (wp-admin) Hide On Screen when page is User Edit Reply To: Hide On Screen when page is User Edit

  • I think the reason you can’t adjust the user edit page like you can the others in ACF is because that page is pretty much completely hard coded in, meaning there’s not really a way for ACF to tell it not to output those fields.

    That said, you can use a plugin/snippet like the one below to hide them yourself.

    
    <?php
    /**
     * Plugin Name: ACF User Edit Page Adjustments
     */
    
    /**
     * Remove the admin colour scheme picker
     */
    remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
    
    /**
     * Add CSS to the admin pages to adjust user-edit.php form
     */
    add_action( 'admin_head', 'remove_edit_profile_fields_css' );
    function remove_edit_profile_fields_css() {
    	echo '<style>
    	/** 
    	 * Remove Visual Editor Option
    	 */
        #profile-page .user-rich-editing-wrap {
        	display: none;
        }
        
        /** 
         * Remove Keyboard Shortcuts Option 
         */
        #profile-page .user-comment-shortcuts-wrap {
        	display: none;
        }
        
        /**
         * Remove Toolbar Option
         */
        #profile-page .user-admin-bar-front-wrap {
        	display: none;
        }
      	</style>';
    }