• I noticed the pictures used as a thumbnail are not having the size specified. This is also noticed as a problem by “GTmetrix” as an example. How could this be fixed?

    Thanks
    Mic

Viewing 1 replies (of 1 total)
  • wp-content/plugins/advanced-random-posts-widget/includes/posts.php and compare line #62, correct code (+ width=”…” and height=”…”):

    $html .= '<img class="arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) . '" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '" width="' . esc_attr( $args['thumbnail_width'] ) . '" height="' . esc_attr( $args['thumbnail_height'] ) . '">';

Viewing 1 replies (of 1 total)
  • The topic ‘Define width and height attributes for pictures’ is closed to new replies.