Support

Account

Home Forums Front-end Issues When Media is deleted, can't remove/change image

Helping

When Media is deleted, can't remove/change image

  • In Google Chrome, when you delete an image from media that you’re using in a image custom field. Then you can’t remove/change the image within the custom field.

    I fixed it by adding this to functions.php

    function custom_admin_head() {
        $css = '';
        $css = 'td.media-icon img[src$=".svg"] { width: 100% !important; height: auto !important; }';
        $css = '.acf-image-uploader.active .has-image { min-width: 150px !important; min-height: 100px !important; }';
        echo '<style type="text/css">'.$css.'</style>';
    }
    add_action('admin_head', 'custom_admin_head');
    

    Hope this helps.

    Cheers,

  • Hi @jokioki

    Thanks a bunch for sharing a fix to the issue.

    I’ll pass this to the developer so that he can have a look at it and include this solution in the plugin.

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

The topic ‘When Media is deleted, can't remove/change image’ is closed to new replies.