Home Forums WoodMart support forum Can’t change post archive thumbnails size, causing bigger page loading time

Can’t change post archive thumbnails size, causing bigger page loading time

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #600005

    dimmisel
    Participant

    Hello, I use the default WP blog page, NOT a custom page with Elementor.

    The thumbnail sizes are hardcoded in your theme’s file content.php to get the ‘large’ size, which is 1024px wide, which is problematic. Some layouts require large images, but some others like a post grid with 3-4 columns require much smaller images.

    Loading always the large size forces the browser to download bigger files for no reason, slowing down the blog loading time.

    I would appreciate if a filter could be added to let us change the size, like I can do for the single post featured image using the WP native filter ‘post_thumbnail_size’.
    PS. I don’t want to create a template override.

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #600079

    Hello,

    Please navigate to Theme Settings -> Blog -> Blog archive > Blog design > choose “small images”.

    Best Regards

    #600096

    dimmisel
    Participant

    I wrote a detailed and well-thought post and I expect a similar answer.

    1. Changing the blog design does not change the thumbnail size that is loading in the background. How is it possible that you don’t know that? I also sent you the screenshot of your hardcoded size in the PHP template. Please show this to someone who is a developer.
    2. I also don’t want to change my blog design, so this is not a good answer no matter what. I use masonry grid and I don’t want to change it.

    Thank you

    • This reply was modified 2 months ago by dimmisel.
    Attachments:
    You must be logged in to view attached files.
    #600413

    Hello,

    To change the image sizes, you can do this in the WordPress settings: https://monosnap.com/file/NRRXlwcjvVpAzcCc5r6bJAIuWhdjMj

    Alternatively, you can add the following code to child theme, which will modify the image size:

    add_action('woodmart_main_loop', function () {
    		if ('post' == get_post_type()) {
    			woodmart_set_loop_prop( 'img_size', 'medium' );
    		}
    	}, 5);

    Best Regards.

    #600490

    dimmisel
    Participant

    Thank you Aizaz, the solution with the woodmart_set_loop_prop is what I was looking for.

    #600598

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Can’t change post archive thumbnails size, causing bigger page loading time’ is closed to new replies.