Hi @anis1287,
Thank you for reaching out.
For the post thumbnail’s size, we have several options to choose from which your theme defines.
If you need a custom size to choose from then just copy and paste the following code in your child theme’s functions.php
It will add the option of the “related-post-thumbnails” option in the thumbnail size dropdown.
add_image_size( ‘related-post-thumbnails’, 100, 100, true ); // thumbnail 100 pixels wide by 100 pixels height, hard crop
Kindly, Review this documentation for more information.
https://wpbrigade.com/docs-article/related-posts-documentation/
Thank You. 🙂
Thread Starter
anis
(@anis1287)
We should have option to change thumbnails size, you’ll need that for post in sidebar with smaller thumbnails, rather than adding that in the theme’s function.
-
This reply was modified 4 years, 8 months ago by
anis.
-
This reply was modified 4 years, 8 months ago by
anis.
Thread Starter
anis
(@anis1287)
The code you gave me is not working.
Anyway, thanks for your help.
Hi @anis1287,
We have tested the above-given code and it works just fine.
Here is a video to see in which we tried to add the options to change the thumbnail sizes.
[ Helping Video ].
There are options that are generally used as thumbnails, however, we added this option if someone needed custom options to choose from.
We also have a filter, use this code in your functions.php file of your child theme, it will not impact any functionality of the theme and add the additional option to choose as thumbnail sizes.