Wordpress bug after creating a custom post type

Viewed 58

I'm using ACF to create custom fields in my custom post types. It all works fine but the Ui of the default editor is not adding any margin to the bottom of the screen and the ACF field is not accessible. Please check the screenshot to understand better. enter image description here

Is there a way to add spacing at the bottom or a workaround to make the field accessible?

1 Answers

You could add a margin between both by injecting a bit of css via a the admin_head action hook in your function.php file.

<?php
    add_action( 'admin_head', 'admin_script' );
    function admin_script() {
    echo '
    <style media="screen">
        div.postbox-container {
            margin-bottom: 25px;
        }
    </style>';
    }; 
?>
Related