Answer the question
In order to leave comments, you need to log in
How to display certain image sizes when installing Custom Field Suite?
Good afternoon, I use the Custom Field Suite plugin to display images in the slider. Easy to add and take out too. However, there are a lot of images and they are in 1920 by 1200, despite the fact that such permissions are not required in the slider, they take up additional space. I also noticed that when adding a picture, the VI creates a thumbnail
file-name-sizeXsize.png. How can I get this size. For example, when adding one picture to the vp, such pictures appear
filename-150x150.png
filename-320xY.png
filename780xY.png
The largest number is no more than 800px and the height is calculated. out of proportion. I would like to output in this resolution. How can I get the names of such files
Answer the question
In order to leave comments, you need to log in
Hello.
In the template where you display the image, you can specify the required image size.
thumbnail - 150x150px
medium - slightly larger
large - even larger
full - full quality.
You can also create your own size by adding this code to the theme's functions.php:
For example, in your case it will be like this:
(name - my_slider, width - 800, height - 600, cropping - off.)
Then you can use my_slider to display the image a specific size in the place you need
https://wp-kama.ru/function/add_image_size
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question