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


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 = ' img[src$=".svg"] { width: 100% !important; height: auto !important; }';
        $css = ' .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.


  • 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)

You must be logged in to reply to this topic.