ACF fields – one of the handiest WordPress plugins of all? Well I use it a lot, and th einternal WP pages can get a bit crazy-looking after a while. To shut everything up by default, use this (add to your functions file):
function my_acf_admin_head() {
?>
<script type="text/javascript">
(function($){
$(document).ready(function(){
$('.layout').addClass('-collapsed');
$('.acf-postbox').addClass('closed');
});
})(jQuery);
</script>
<?php
}
add_action('acf/input/admin_head', 'my_acf_admin_head');
Need rapid website development:
For smaller projects at high speed
-
Adding script tag embed to Gatsby component
Read More -
Get more than 100 queries in GraphQL (I felt stupid)
Read More -
Animate on Scroll (AOS) into Nuxt js
Read More -
WordPress Super-admin hack
Read More -
Add content or ACF field under thumbnail/image gallery in Woocommerce
Read More