• Resolved Salpetriere

    (@salpetriere)


    Hi.

    We’ve set up our blog page in the Neve settings under Appearance > Customize > Layout > Blog / Archive.

    How do we change the thumbnail size displayed on the blog page?

    We’re using the ‘Grid’ layout option, and would like all thumbnails to be the same height (by using the thumbnail size image set in settings > Media).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Salpetriere

    (@salpetriere)

    I have tried achieving this using the following function recommended in your documentation here.

    function change_blog_image_size() {
    	remove_image_size( 'neve-blog' );
    	add_image_size( 'neve-blog', 350, 250, true );
    }
    add_action( 'after_setup_theme', 'change_blog_image_size' );

    As you can see, we require our blog images to be 350 x 250 cropped.

    The function above doesn’t change the size of the ‘neve-blog’ image size though, it remains at 930 x 620 cropped after implementing the function.

    We don’t use a child theme to implement our custom functions, rather we use the following plugin – My Custom Functions.

    Do I need to run the function earlier, given the fact that I’m using it in a plugin? All our other functions work perfectly.

    We do not use a child theme. We do not want to use a child theme.

    • This reply was modified 4 years, 4 months ago by Salpetriere.
    Thread Starter Salpetriere

    (@salpetriere)

    Were there any developments with this?

    Hi @salpetriere,

    I have just tried to place the code to change image size in the same test instance that I provided you in a different thread (used functions.php file) and it worked as expected – the new image size was set with the desired dimensions.

    If it’s not working as expected with a plugin that you are using to add custom functions it might be something wrong with the functionality of that plugin. Please test it by applying to the functions.php file to verify if functionality works as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Change Thumbnail Size Displayed On Blog Page?’ is closed to new replies.