Advanced Custom Fields
Z-index Bug on Edit Attachment Modal View (1 post)

  1. cagnazzo
    Posted 1 year ago #

    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 {


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic