D
D
deskostyuk2020-04-26 23:36:31
Images
deskostyuk, 2020-04-26 23:36:31

How to make different image srcset on wordpress?

Good day to all! On my site, rectangular post images are used, but for phones they turn into square ones (adaptive, they are cut off themselves). Can you please tell me how to make one picture for the desktop version and another for the mobile one? I read about srcset, but I can't figure it out myself. Now the image is displayed with the code "<?php the_post_thumbnail('large'); ?>"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question