How to find images in lazyload to set alt attribute?

WordPress has multiple images in multiple locations. Those can be images inside of posts, featured images, icon images in menus, product images, logo image in header, images in footer for branding and many more. Therefore it is not possible to answer your question specifically with little details that you given. Generally speaking you can use … Read more

the_post_thumbnail() image sizing problem?

the_post_thumbnail() allows you to set the size of the image you want to use, the default is thumbnail but you can override it to use any of the defined sizes or a custom size e.g. the_post_thumbnail(‘medium’); the_post_thumbnail(‘large’); the_post_thumbnail(‘full’); the_post_thumbnail( array(980, 450) ); Images generated by WP use srcset to give image dimensions based on device … Read more