R
R
Rezonatorrr2019-11-07 14:07:22
css
Rezonatorrr, 2019-11-07 14:07:22

How to set a new template for displaying image thumbnails in wordpress?

How to make sure that all thumbnails of images in blocks are shown on the site in a 16:9 ratio without cropping? Pennews theme. I can provide a piece of code if needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Kulikov, 2019-11-07
@anatoly_kulikov

As an option - the block that contains the image, typeset for this format, and the image through the styles on the background.
In general, wp has a function for adding a new image size - add_image_size (), using it, set the resolutions suitable for your site in this proportion and use it to your health.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question