• Resolved worldless

    (@worldless)


    When I scan my website in gtmetrix.com I get the following message for the generated thumbnails :

    Specify image dimensions :
    The following image(s) are missing width and/or height attributes.

    I have tried many dimensions but still the same issue. How can I fix it ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter worldless

    (@worldless)

    please fix this issue for the next release… I have a very bad score due to the above mentioned issue.

    I’ll wait for the next release before I rate this plugin.

    radektj

    (@radektj)

    wp-content/plugins/recent-posts-widget-extended/includes/functions.php and compare line #132, correct code (+ width=”…” and height=”…”):
    $html .= '<img class="' . esc_attr( $args['thumb_align'] ) . ' rpwe-thumb" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '" width="' . esc_attr( $args['thumb_width'] ) . '" height="' . esc_attr( $args['thumb_height'] ) . '">';

    Thread Starter worldless

    (@worldless)

    excellent… but the next release would definitely overwrite it. hope you could update it for the next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The following image(s) are missing width and/or height attributes.’ is closed to new replies.