I use Advanced Custom Fields Pro for every website that I build. The biggest feature that I love is the options page. This makes it easy for clients to go to one location to manage any text, images or content for their website.
I’ve used the tabs approach before but have started created new field groups for each section on the home page or a global section.
The only downside is that you lose the snapshot view of your page that you get with having tabs.
My solution was to figure out a way to close the ACF field groups by default. That way you can see all of the sections when you visit the global settings or home settings then open whichever section you want to edit.
In order to have the ACF field groups closed by default, just add this snippet to your themes functions.php and keep on rolling with your WordPress development!
<?php | |
add_action('acf/input/admin_head', 'my_acf_input_admin_head'); | |
function my_acf_input_admin_head() { ?> | |
<script type="text/javascript"> | |
jQuery(function($){ | |
$('.acf-postbox').addClass('closed'); | |
}); | |
</script> | |
<?php } |