Can I add a custom ID, class, or attribute to an ACF field group in the page editor screen?

admin2025-05-31  0

I'm managing a WordPress site that many people use to manage its content. We use Advanced Custom Fields (ACF) for a few features on the site.

I have some requests to customize how a few specific ACF field groups appear in the editor.

Right now, I'm using editor-style.css and targeting them based on where they land by default in the order of ACFs. I'd much rather target them specifically, because individual users can customize the order of these field groups in their version of the editor screen.

I'd love to add a custom class, ID, or other identifying attribute to the parent element wrapping the field groups. Is that possible?

Bonus Points: Is it possible without running AJAX functions every time the editor page loads?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748624864a313609.html

最新回复(0)