Thumbnails generated with wrong css size class and img atributes
-
Hi, I have an custom thumbnail size created. But wp is generating to me still 100px thumbnail sizes into classes and into img tag atributes.
in my child theme funtion.php I puted:
add_theme_support( 'post-thumbnails' ); add_image_size( 'dk-thumb', 180, 180, true );
In WP backend setting also I changed thumbnail size accordingly.
I regenerated thumbnails, but still, wp generates me a wrong size classes and img size atrributes. …?!? (attachment-100×100 size-100×100 and width=”100″ height=”100″, also the responsive sizes are wrongly generated sizes=”(max-width: 100px) 100vw, 100px)
<img width="100" height="100" src="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png" class="attachment-100x100 size-100x100 wp-post-image" alt="K9mailLogo" title="K-9 email" srcset="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png 180w, https://www.danielkral.cz/wp-content/uploads/K9mailLogo.png 300w" sizes="(max-width: 100px) 100vw, 100px">
Thank you for advice!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Thumbnails generated with wrong css size class and img atributes’ is closed to new replies.