Support

Account

Home Forums ACF PRO How to add custom class to admin_body_class based on ACF field data? Reply To: How to add custom class to admin_body_class based on ACF field data?

  • My advice is to load some custom javascript in the admin and add/change/remove classes on the admin body using jQuery (or just vanilla).

    – I was planning to write some vanilla js but did not find an easy way to fetch the ACF field data inside the JS. If you have an example JS snippet of how it can be done that would really help.