VladNovo
Member
Posted 1 year ago #
Hey all! I have an issue with the Featured Image on post page. I've added the add_image_size function with exact width and height of the thumbnail. I understand that the thumbnail should be cropped exactly to the size i put inside this function. But the result is strange: the thumbnail is getting only the height right, but the width is anything but the size in the function. For example: in the function width 303, height 100, on the page i see width 133, height 100.
What causing this and how it can be fixed?
Thank you.
VladNovo
Member
Posted 1 year ago #
In case someone is interested: after you add add_image_size('some name', 524, 350, true); to functions.php you actually must delete all images from Media Library and then upload them again. Otherwise this function simply wont work. Not recommended for old sites i guess )
oldbag66
Member
Posted 1 year ago #
Hi Vlad, i have this problem, could you paste your full code that you've used in your functions file (only the bit relative to the featured image of course!)
Karalius
Member
Posted 1 year ago #
it worked, it worked, it worked! THANK YOU VladNovo, thank you very much, you really helped me a lot