Update child theme's function.php for image Thumbnail Sizes
-
Hi all,
I’m a newbie here trying to setup a new Hueman site. I have a child theme going and trying to change the file sizes of Thumbnails that get generated (most importantly, I want to change aspect ratio for Featured images, which I believe is being controlled by ‘thumb-large’).
When I try to add adjusted code to the functions.php of the child theme it either doesn’t work at all or breaks the site. I think I need some basic guidance on how to properly format the code, unless there is some other reason it’s not working.
Here are the thumbnail sizes I would like to have:
//
add_image_size( ‘thumb-small’, 160, 160, true );
add_image_size( ‘thumb-medium’, 520, 347, true );
add_image_size( ‘thumb-large’, 720, 480, true );
//In the main Hueman theme, the thumbnails are listed in this section:
//
if ( ! function_exists( ‘alx_setup’ ) ) {function alx_setup() {
//If you can show me how to properly put this in the child theme function.php that would be great.
Thanks!
Mike
- The topic ‘Update child theme's function.php for image Thumbnail Sizes’ is closed to new replies.