Add a custom image size

Now that our component works, and we have our Java script enqueued, we can start customizing the functionality of this particular component to make it work exactly the way we want to.

Out of the box, WordPress has a series of image sizes — but what happens when none of those image sizes really fit with what you want?

Creating new image sizes is a standard thing we do in WordPress themes all the time, so in this video, we’re going to generate our own custom image size, and do it inside the component.

More from this course: