AWPGuide

Beginner's Guide For WordPress

  • Blog
    • Monetization
    • Reviews
    • Showcase
    • WordPress Guides
    • ScanWP
  • Start Here
  • Deals
  • Blueprint

Last Updated On October 18, 2018 By Christina

AWPGuide » WordPress Guides » How To Add Additional Image Sizes In WordPress

How To Add Additional Image Sizes In WordPress

How To Add Additional Image Sizes In WordPress

Last time, we have shown you how to add additional CSS on your website. After publishing that tutorial, one of our users asked about adding additional image sizes in WordPress. In this post, we are going to show you how can you add additional image sizes in WordPress.

Most theme authors will add specific image sizes in their WordPress themes. In case if you need to add a custom size of the image, you can follow this tutorial.

How To Add Additional Image Sizes In WordPress

First of all, log in to your WordPress dashboard and go to the theme editor.

Add Additional Image Sizes In WordPress

There, you need to choose the functions file.

wordpress theme functions file editor

Copy the below code.

add_theme_support( 'post-thumbnails' );

Paste it on the functions file. If the code is already on your functions file, you don’t need to add it.

Now, let’s create additional image sizes on the website. You need to copy the below code.

add_image_size( 'sidebar-thumb', 120, 120, true ); // Hard Crop Mode
add_image_size( 'homepage-thumb', 220, 180 ); // Soft Crop Mode
add_image_size( 'singlepost-thumb', 590, 9999 ); // Unlimited Height Mode

Paste it on the functions file and update the file. Tweak the above code according to your needs. Mainly the size. While editing the functions file, make sure that you are using a WordPress child theme.

Regenerating Thumbnails

Once you have added the code in your functions file, you need to regenerate thumbnails. It will help you to generate a fresh copy of your older images with the specific sizes.

Go to add new plugins section and install Regenerate Thumbnails plugin.

install regenerate thumbnails plugin

After that, activate the plugin.

activate regenerate thumbnails plugin

You can find the plugin settings under tools. Also, you can see the all available image sizes.

regenerate thumbnails plugin settings

You need to regenerate all thumbnails.

regenerate image thumbnails

Within a short time, the plugin will regenerate thumbnails for you. If you have so many images, it will take some time.

image thumbnails regenerated

You are done! This is how you can add additional image sizes in WordPress and regenerate existing thumbnails.

We hope you found this post helpful and enjoyed the read. If you did, please consider sharing this post with your friends and fellow bloggers. For more related posts, you may want to check out our blog section.

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

About Christina

Christina is the lead editor in AWPGuide.
She will mainly write about WordPress tutorials, product reviews, monetization tricks, and related stuff.
Christina is led by Sreehari.

6 COMMENTS
  1. Karl says

    November 23, 2018 at 9:42 AM

    Oh god,
    My issue is finally fixed.
    Recently I have changed the WordPress theme. By generating custom images sized, everything went normally.
    Thank you, Christina.

    Reply
    • Christina says

      November 23, 2018 at 4:13 PM

      Hi Karl,
      happy blogging!

      Reply
  2. Nick says

    November 27, 2018 at 3:59 PM

    Will it increase the storage space?
    My current web hosting got limits on disk space!

    Reply
    • Christina says

      November 28, 2018 at 9:11 AM

      Hey Nick,
      Yes, it will.
      But, we are using an image compression plugin called ShortPixel.
      The plugin will help you to compress images, save disk space.

      Reply
  3. Asin says

    November 28, 2018 at 1:36 PM

    How can I add plugins?
    My blog doesn’t have the most options that you mentioned here!
    Please help me!

    Reply
    • Christina says

      November 29, 2018 at 12:03 PM

      Looks like you are on WordPress.com.
      Please see our post about WordPress.com vs WordPress.org.

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let us have a personal and meaningful conversation.

Learn WordPress Now!

Never miss our updates! We are adding fresh contents daily!
Join our newsletter and learn WordPress now!

The Best of AWPGuide

We have the best guides here! Some of them are below!

Beginner's Guides

  • 1
    Media.net Review (and RPM Optimization Guide)
  • 2
    Grammarly Review: Free Proofreading Tool
  • 3
    Why You Need To Build an Email List?
  • 4
    How To Start a Free Blog on CloudAccess.net
  • 5
    Aspire pro Documentation and Setup
  • 6
    WP Engine Affiliate Program Review
  • 7
    How To Add Coupon Section In WordPress

Theme Reviews

  • 1
    Jupiter X WordPress Theme Review
  • 2
    Newsmag WordPress Theme Review
90% DISCOUNT
AWPGuide
Namecheap October .xyz Domain Coupon

Namecheap October .xyz Domain Coupon

You can get 90% off on all .xyz domains! Check out the coupon code and get your .xyz domain name now! This is a limited time deal.
Get This Deal

ABOUT AWPGUIDE

Finally we have launched AWPGuide blog! At this time of writing, we know, there are so many blogs are providing blogging and money making tips and tricks.

We are not like them! In AWPGuide, we will cover WordPress, blogging, SEO, make money online guides and will teach you how to start, maintain and monetize a WordPress blog.

All these guides will be 100% free and always it will be. We are not running a typical membership website for making money. Also, AWPGuide is free from display advertising, pop-up ads and URL shortner!

For more, feel free to check out our about page.

SITE LINKS

About Us

Advertise Here!

Contact Us

Free Blog Setup

Terms of Service

Write For Us!

Privacy Policy

Deals

OptinMonster Coupon

MyThemeShop Coupon

WPForms Coupon

Bluehost Coupon

CSS Hero Coupon

Social Warfare Coupon

REVIEWS

Genesis Framework

WP Coupons

WP Review Pro

Slider Revolution

Newsmag

Jupiter X

MonsterInsights

© 2023 · AWPGuide LLC