Support

Account

Home Forums Bug Reports Message field label in wp-admin

Unread

Message field label in wp-admin

  • First of all, ACF is fab!

    I noticed when using the message field that the required field label does not show on the edit page as it suggests.

    When investigating the css of the edit page using Firebug, I found it it because of this rule:

    .acf_postbox .field_type-message p.label {
    display: none !important;
    }

    It is found on line 148 of /css/input.css

    I’ve temporarily overriden the css by adding the following to functions.php:

    function correct_acf_styles () {
    ?>
    <style>
    .wp-admin .acf_postbox .field_type-message p.label {
    display: inline !important;
    </style>
    <?php
    }
    add_action(‘admin_print_styles’,’correct_acf_styles’);

    However, it seems like a quick fix is needed to the css for the next release!

    Thanks,

    Andy

  • Hi @andymacleod

    This was a personal decision to hide the label.
    I’ll add this to the to-do and consider adding it back in.

    Thanks
    E

  • I’ve just noticed this also with the “Tab” field – in “input.css” this code is causing the field (in the admin edit screen) to disappear as soon as “Tab” is selected:

    .field_type-tab {
    	display: none !important;
    }

    You can see it is still there as the field #’s will skip a number where the tab is supposed to be.

    Seems like a bug, but correct me if I am wrong or missing something.

    Screenshot: http://i.imgur.com/HCWH8MJ.png (Field #4 should be a tab)

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Message field label in wp-admin’ is closed to new replies.