<img width="230" height="300" src="https://aaa.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt=""> When displaying thumbnails, WordPress adds width = "230" height = "300" to the size of the image, but they really hinder me (I put the masonry grid). How can I remove them so that img does not turn into a 0x0 point?
Or what to do with WordPress, so that it does not display the width and height?
Addition
<?php while ( have_posts() ) { the_post(); echo "<a class=\"wp-block-image\" href='"; echo the_permalink(); echo "'>"; echo the_post_thumbnail(); echo "</a>"; }; ?> js
var $grid = $('.cat').masonry({ $grid.imagesLoaded().progress( function() { $grid.masonry('layout'); }); css
.wp-block-image { float: left; border: 1px solid hsla(0, 0%, 0%, 0.5); width: calc(33.3% - 20px); }