Viewing 3 reply threads
You must be logged in to reply to this topic.
Hi Azam, previously when changing the size of the feature image that displays on the single blog post I would go to the functions.php file and edit to the size I need:
function codeless_images_sizes(){
add_image_size( ‘port3’, 600, 600, true );
add_image_size( ‘port2’, 460, 275, true );
add_image_size( ‘port4’, 600, 600, true );
add_image_size( ‘blog’, 825, 500, true );
add_image_size( ‘blog_grid’, 350, 350, true );
add_image_size( ‘staff_full’, 500, 340, true );
I am running the latest version of your theme on a new client’s site and this edit doesn’t work for me now. Can you please advise how I can get the blog post image to display as:
add_image_size( ‘blog’, 825, 500, true );
The client’s site is at: https://www.ballykinrosebay.com.au/news-1/
Hi,
Once you add/modify the image size. It’ll not apply to the images already stored in your media library but to the new ones. To apply the image size on the previously stored images you’ve to use a third-party plugin i.e. Regenerate Thumbnails. Through the plugin, you can apply the newly added/modified image size on previously stored images.
Thanks,
I understand. But new post feature images aren’t rendering to the new size either. Any clues?
Hi,
It should work. Make sure you’re following the right path.
Follow the steps:
1- Modify the blog image size from “825 x 340” to “825 x 500” in functions.php.
2- Create a new post.
3- Upload a new image from your system to the site and set it as the post featured image.
4- Now, the image size of the post in the blog and single post page should be “825 x 500”.
Follow the above steps and share the link of the post if the issue doesn’t resolve.
Thanks,
You must be logged in to reply to this topic.