Hiding Advanced Custom Fields in the Admin

acf-2

There are times when you are using Advanced Custom Fields for development but don’t want it to clutter the admin interface. ACF is a simple way to add custom fields to any WordPress theme, however too many fields, or a field you dont want the end user to see can be a problem. ACF has a solution for you that is very simple!

When you edit a field in Advanced Custom Field, one of the sections under Presentation is the “Wrapper Attributes.” In this section you can add a built in ACF CSS class.

Advanced Custom Fields provides a CSS class in the acf-global.css file, called “acf-hidden". When you add this to the class field under presentation it applies the  “display: none” CSS to the field in the admin.

Once implemented the field will be hidden from all users in the admin interface.