NigelDcruz
NigelDcruz

Reputation: 927

Wordpress bug after creating a custom post type

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?

Upvotes: 2

Views: 91

Answers (1)

amarinediary
amarinediary

Reputation: 5449

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>';
    }; 
?>

Upvotes: 1

Related Questions