Support » Plugin: Advanced Custom Fields » Z-index Bug on Edit Attachment Modal View

  • Steps to reproduce:

    1. Create a Wysywig field, set it to show on Attachments.
    2. Create an Image field, set that to show on a Post or Page.
    3. Navigate to post/page, add an image to the image field.
    4. Edit the image by hovering over the image, clicking the pencil icon.
    5. Now, try to add a link in the Wysywig field created above.

    The ‘Insert/Edit Link’ Modal will be hidden due to having a lower z-index value then the ‘Edit Media’ modal. My fix is below:

    add_action('admin_head', 'fix_tinymce_on_attachments');
    function fix_tinymce_on_attachments() {
      echo '<style>
        .wp-admin #wp-link-backdrop {
        .wp-admin #wp-link-wrap.wp-core-ui {

  • The topic ‘Z-index Bug on Edit Attachment Modal View’ is closed to new replies.