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>';
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.