Hi.
I’m wondering if there’s a hide to hide/show a ACF field in the backend depending on which theme is active (without using CSS and admin_head).
In this case, I’d like to show certain ACF fields if the child theme is active, but hide them if only the parent theme is active. I’ve searched for a solution but haven’t managed to find anything. If no such feature exists, consider this a feature request 🙂
Thanks,
Anders
You would need to create a custom location rule for that https://www.advancedcustomfields.com/resources/custom-location-rules/
I also have several examples of custom location rules here https://github.com/Hube2/acf-filters-and-functions, I’ve also added an enhancement issue for myself to add this when I have some free time, it sounds interesting.