{"id":2568,"date":"2020-08-15T13:00:00","date_gmt":"2020-08-15T12:00:00","guid":{"rendered":"https:\/\/chewett.co.uk\/blog\/?p=2568"},"modified":"2020-08-12T17:09:50","modified_gmt":"2020-08-12T16:09:50","slug":"fixing-wordpress-image-thumbnails-not-being-the-right-size-for-your-theme","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/2568\/fixing-wordpress-image-thumbnails-not-being-the-right-size-for-your-theme\/","title":{"rendered":"Fixing WordPress Image Thumbnails not being the right size for your Theme"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"254\" data-attachment-id=\"2591\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/2568\/fixing-wordpress-image-thumbnails-not-being-the-right-size-for-your-theme\/fixing_thumbnail_sizes_wordpress\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"fixing_thumbnail_sizes_wordpress\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?fit=678%2C254&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?resize=678%2C254&#038;ssl=1\" alt=\"\" class=\"wp-image-2591\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnail_sizes_wordpress.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p>This post talks about how you can fix WordPress Image thumbnails not being the right size for your theme.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Why this issue occurs<\/h2>\n\n\n\n<p>Whenever you upload an post image the thumbnail is created on upload. This means that the image thumbnail does not need to be created on the fly.<\/p>\n\n\n\n<p>The issue with this is that when you change WordPress Theme the new image thumbnail size the theme uses might be different. If this is the case the theme may be unable to properly size the images.<\/p>\n\n\n\n<p>This can be quite obvious when you start adding new posts as the thumbnails will be cropped to fit the new theme and you will have a mix of old and new thumbnail sizes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Regenerating Thumbnails at the correct size<\/h2>\n\n\n\n<p>To resolve this you will need to re-process the thumbnails again. Doing this will regenerate the thumbnails at the new size and they will be displayed correctly.<\/p>\n\n\n\n<p>To fix this you can use the <a rel=\"noreferrer noopener\" href=\"https:\/\/en-gb.wordpress.org\/plugins\/regenerate-thumbnails\/\" target=\"_blank\">Regenerate Thumbnails Plugin<\/a>.<\/p>\n\n\n\n<p>When you change WordPress themes or change the sizes of your thumbnails at&nbsp;<a href=\"https:\/\/chewett.co.uk\/blog\/wp-admin\/options-media.php\">Settings \u2192 Media<\/a>, images that you have previously uploaded to you media library will be missing thumbnail files for those new image sizes. This tool will allow you to create those missing thumbnail files for all images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post talks about how you can fix WordPress Image thumbnails not being the right size for your theme.<\/p>\n","protected":false},"author":1,"featured_media":2592,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Today I have written a short article about how you can fix #Wordpress Image Thumbnails not being the right size for your Theme","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[391,28],"class_list":["post-2568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fixes","tag-thumbnails","tag-wordpress"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/fixing_thumbnails_wordpress_icon.jpg?fit=1200%2C628&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-Fq","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":602,"url":"https:\/\/chewett.co.uk\/blog\/602\/modifying-wordpress-theme-child-theme\/","url_meta":{"origin":2568,"position":0},"title":"Modifying a WordPress theme with a child theme","author":"Chewett","date":"August 26, 2017","format":false,"excerpt":"The recommended way to modify a WordPress theme is to use a child theme. This allows redefining all features of the parent theme without manually changing the theme. This post describes why you might want to do this and how to do it. Why would I want a child theme\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/wordpress_child_themes.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/wordpress_child_themes.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/wordpress_child_themes.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/wordpress_child_themes.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2773,"url":"https:\/\/chewett.co.uk\/blog\/2773\/pypi-pypirc-file-location-on-windows\/","url_meta":{"origin":2568,"position":1},"title":"PyPi .pypirc file location on Windows","author":"Chewett","date":"January 23, 2021","format":false,"excerpt":"This blog post describes where you should put your PyPi .pypirc file on windows and what it typically wants to include. Uses of the PyPi .pypirc file The main use of the pypi.rc file is to store your PyPi settings used to upload new Python packages. Primarily it is used\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/01\/pypirc_location_windows_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/01\/pypirc_location_windows_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/01\/pypirc_location_windows_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/01\/pypirc_location_windows_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/01\/pypirc_location_windows_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2853,"url":"https:\/\/chewett.co.uk\/blog\/2853\/adding-the-heltec-esp32-library-to-the-arduino-ide\/","url_meta":{"origin":2568,"position":2},"title":"Adding the Heltec ESP32 library to the Arduino IDE","author":"Chewett","date":"April 10, 2021","format":false,"excerpt":"This post talks about how you can add the Heltec ESP32 library to the Arduino IDE and use it to test your Heltec ESP32. Adding board support for the Heltec ESP32 Before adding the Heltec ESP32 library to the Arduino IDE you should ensure the Heltec ESP32 series boards are\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/04\/makerhawk_lora_esp32_library_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/04\/makerhawk_lora_esp32_library_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/04\/makerhawk_lora_esp32_library_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/04\/makerhawk_lora_esp32_library_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/04\/makerhawk_lora_esp32_library_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1913,"url":"https:\/\/chewett.co.uk\/blog\/1913\/raspberry-pi-cluster-node-10-more-advanced-connection-handling\/","url_meta":{"origin":2568,"position":3},"title":"Raspberry Pi Cluster Node \u2013 10 More Advanced Connection Handling","author":"Chewett","date":"January 16, 2019","format":false,"excerpt":"This post builds on\u00a0my previous posts in the Raspberry Pi Cluster series\u00a0by improving the connection code so it wont crash when the master or slave disconnects. Using Exceptions to handle socket issues The improvements to the cluster code are going to add an exception to the communication code. This will\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/rpi_cluster_10_advanced_connection_handling.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/rpi_cluster_10_advanced_connection_handling.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/rpi_cluster_10_advanced_connection_handling.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/rpi_cluster_10_advanced_connection_handling.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1252,"url":"https:\/\/chewett.co.uk\/blog\/1252\/introducing-the-pokemon-go-api-does-it-nest-page\/","url_meta":{"origin":2568,"position":4},"title":"Introducing the Pokemon Go API &#8220;Does it Nest?&#8221; Page","author":"Chewett","date":"June 13, 2018","format":false,"excerpt":"This blog post talks about the \"Does It Nest?\" page on pogoapi.net and how you can easily find whether something nests without the API. Does it Nest? Previously I have talked about releasing the nesting API for PoGoAPI.net but up until now there has not been an easy way to\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/pogo_api_does_it_nest.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/pogo_api_does_it_nest.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/pogo_api_does_it_nest.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/pogo_api_does_it_nest.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":258,"url":"https:\/\/chewett.co.uk\/blog\/258\/vchi-initialization-failed-raspberry-pi-fixed\/","url_meta":{"origin":2568,"position":5},"title":"VCHI initialization failed Raspberry Pi Fixed","author":"Chewett","date":"October 26, 2016","format":false,"excerpt":"If when running vcgencmd on a raspberry pi you get\u00a0VCHI initialization failed then you need to add the video group to your user. The vcgencmd tool requires you have this group role so without it, it will give VCHI initialization failed. To add the user group to your user you\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"vcgencmd get_mem arm VCHI initialization failed","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2016\/10\/vchi_init_failed.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2016\/10\/vchi_init_failed.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2016\/10\/vchi_init_failed.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2568"}],"version-history":[{"count":5,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2568\/revisions"}],"predecessor-version":[{"id":2593,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2568\/revisions\/2593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/2592"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}