• Hi,
    I’ve noticed that after the recent updates, my site’s default image and thumbnail sizes are no longer set up the way I had them. Previously, I had changed the default sizes so that thumbnail images were custom dimensions as well as the Featured Images on posts and pages.

    The way I had changed them before was in functions.php. The changes are still there, but I believe something changed and this may not be the correct way to make these changes. Any suggestions?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter AZBros

    (@azbros)

    Okay… I think I may have figured it out. The default thumbnail sizes are now located in Functions/init-after-setup-theme.php

    I made the changes and tried regenerating my images, but everything looks the same so far. I think it may just take some time for the changes to go live. I’ll report back if the images are being displayed correctly in a while.

    Thread Starter AZBros

    (@azbros)

    Looks like it didn’t work. If anyone has any ideas about what other files I need to edit to change the size of the thumbnails, please let me know. Thanks!

    Hi,

    You mentioned the following.

    The way I had changed them before was in functions.php. The changes are still there,

    Which means it’s still overriding the function in parent theme, unless you update it correctly or remove it from your child theme.

    Thank you

    Thread Starter AZBros

    (@azbros)

    Hi Denzel,
    So adding the following code to functions.php and making the appropriate changes should work?

    // Thumbnail sizes
        add_image_size( 'thumb-small', 160, 160, true );
        add_image_size( 'thumb-standard', 320, 320, true );
        add_image_size( 'thumb-medium', 520, 245, true );
        add_image_size( 'thumb-large', 720, 340, true );

    This is what I had previously done in my functions.php file. I changed the dimensions and all my thumbnails were resized the way I wanted. After one of the recent updates, newly uploaded images were not being properly resized, but instead being set to the default dimensions.

    I discovered that the above code is now located in function/init-after-setup-theme.php. Would I needed to copy that entire file to my child theme or is there another way to adjust the default thumbnail sizes?

    Hi,

    You need to copy the entire function hu_setup to your child theme, not the file.
    And you cannot have more than one function hu_setup in your child theme.
    Edit the image sizes in your child theme code, and regenerate your images.

    Please hire a developer from http://jobs.wordpress.net if you require customization assistance. I can only provide help in using the Theme, not customization.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Change Default Thumbnail Sizes’ is closed to new replies.