First of all you did understand the tutorial correctly.
When I inspect the html it is grabbing the correct thumbnail. You can see that the source is: https://andco.app/wp-content/uploads/sites/2/2023/11/1653467544_cijene-nekretnina-u-hrvatskoj-150×150.jpg . So it is grabbing the 150×150 image. As you can see in the below images.
When I inspect the image there is a CSS class causing it to fill the whole container. It is the class involving the .wp-lazy-load.
See how it’s giving it a width of 100%? So that’s why it’s growing to full size. So you may add a simple class and shortcode ID.
First add this to the specific shortcode shortcode_id='immobili_page'
so the full shortcode will look like so:
[netsposts shortcode_id='immobili_page' thumbnail='true' size='thumbnail' hide_excerpt='true' paginate='true']
Then you may add the following to your CSS file or wherever you add your custom CSS.
#immobili_page .netsposts-content .post-thumbnail.wd-lazy-load { width: 150px; }
This should overwrite the other CSS and take priority. Let me know if it doesn’t work.
Note: This will only work for this instance of the shortcode. If you want it to work everywhere ignore the part about the ID. Then the CSS would just be:
.netsposts-content .post-thumbnail.wd-lazy-load { width: 150px; }
Plus the shortcode would remain the same as you had it.
This reply was modified 1 year ago by johnzenausa . Reason: Had multiple typos that needed to be corrected
This reply was modified 1 year ago by johnzenausa . Reason: Changed shortcode to CSS for clarity. Miss-typed again