Hi,
This is what I did to control the size of the featured image in hatch:
First of all, I hear it’s bad to alter the theme code, so make sure you have a pristine copy of hatch and create a child theme. This is very easy. My child theme consists of a folder (in the themes folder) called hatch-child. Into hatch child I put a style.css file with:
/*
Theme Name: Hatch Child
Description: Child theme for Hatch theme
Author: stoatoffear
Template: hatch
*/
@import url("../hatch/style.css");
Please bear in mind that the theme name “hatch” is case-sensitive.
Next create a functions.php file in the hatch-child folder with the following, but altering the line at the bottom as you wish:
<?php
/**
* @package Hatch Child
* @subpackage Functions
* @version 0.1
* @author DevPress
* @link https://devpress.com
* @license https://www.gnu.org/licenses/gpl-2.0.html
*/
/* Do theme setup on the 'after_setup_theme' hook. */
add_action( 'after_setup_theme', 'hatch_child_theme_setup', 11 );
function hatch_child_theme_setup() {
/* Get action/filter hook prefix. */
$prefix = hybrid_get_prefix();
/* Custom image sizes */
remove_action( 'init', 'hatch_image_sizes' );
add_action( 'init', 'mytheme_image_sizes' );
}
function mytheme_image_sizes() {
add_image_size( 'single-thumbnail', 640, 360, true );
/*alter this line to change the featured image size
delete "true" to stop the image being cropped, or change the width and height. */
}
?>
Then activate the child theme in your site and voila! You will have to re-insert any images that were inserted before you activated the child-theme, plus the header image on the home page will also need to be re-done, and if you have a menu you will have to reactivate it.
Check my site https://www.richardcalvert.com where you can see that the featured images are now not cropped, and insert themselves at the correct height – whatever that is.
I am a newbie too, so be sure to point out any improvements! I haven’t noticed any problems yet though.