
With the launch of our new Olivia theme we’ve been getting questions on how to create a custom image size for the Genesis – Featured Posts widget type. Depending on the layout of your blog post graphics the default options might not be just right for you, so in this post we’ve got some easy-to-follow instructions to help you make everything look perfect.
[Tweet “Here’s how to create a custom image size for your Genesis Featured Posts widget!”]
How to create a custom image size
Creating a custom image size requires a little bit of code. Don’t worry though, it’s nice and easy!
To start, go to Appearance > Editor. Once you’re there, click the Theme Functions link on the right-hand side to open the functions.php file.

Scroll to the bottom of the file and add the following code:
add_action( 'init', 'cc_add_image_size' );
function cc_add_image_size() {
add_image_size( 'custom-thumbnail-name', 350, 460, TRUE );
}
Change ‘custom-thumbnail-name’ to a name you’ll remember, being sure to leave the single quotes around the name and using dashes, rather than spaces.
Then, change 350 to your image width and 460 to your image height, being sure not to delete any of the commas.
Click Update File and the hard part is over!
Regenerate thumbnails
After the small coding change is made, any new images you upload will be available in your new size. Since we also want previously uploaded images available in our new size, there’s one extra step that requires a plugin.
Head over to Plugins > Add New and install the Regenerate Thumbnails plugin by Alex Mills.

Then go to Tools > Regen. Thumbnails and hit the Regenerate All Thumbnails button.
After the blue bar has made it all the way across, you’re good to go!

Update your Genesis Featured Posts settings
Now all that’s left to do is update the settings for your featured posts widget. Go to Appearance > Widgets and expand your Genesis – Featured Posts widget. In the bottom-left box, change the Image Size setting to your new custom size and hit the Save button.

Now you can refresh your page and see your perfectly sized image showing off your blog posts!
What other theme changes would you like to make?
Here at Coded Creative, we’re all about helping you make your website perfect. Sometimes that’s done through finding the perfect theme and other times you just need to make a small tweak to your existing theme.
If you’ve got a tweak, similar to the one we just went over, that you’d like to make to your website, let us know in the comments! Your question might just be answered in our next blog post.
Need more WordPress Tutorials?
Click to view my library of tutorials just like this one for WordPress users!


