Hi Emma!
If you’ve changed the size in the functions.php of your child theme correctly, it should work.
Some possibilities:
– Make sure the child theme is the active theme, not the parent one
– Has the child theme function somehow been edited back to default values?
– Does the functions file of the child theme have any error that may break the alx_setup function?
– Are you editing the size for thumb-medium as well? The large one shows up in the featured spot, the medium one shows for all the others – so that would need to be edited too.
Since you had it working, and now it suddently does not, it sounds like you may have made some code change that broke/changed the stuff back to default.
Thread Starter
tekka
(@tekka)
Thanks for such a quick response Alexander.
I have checked the points you made and can’t see anything wrong. Currently I only have thumbnail image sizes in my functions.php file, as below
if ( ! function_exists( ‘alx_setup’ ) ) {
// Thumbnail sizes
add_image_size( ‘thumb-small’, 160, 160, true );
add_image_size( ‘thumb-medium’, 520, 318, true );
add_image_size( ‘thumb-large’, 720, 440, true );
}
Is there any way of checking how I could have broken something else or shall I just remove child files to see if I can find the offender?
Thanks
You would need to include the whole alx_setup function in the child theme, with your edits, like this:
function alx_setup() {
// Enable automatic feed links
add_theme_support( 'automatic-feed-links' );
// Enable featured image
add_theme_support( 'post-thumbnails' );
// Enable post format support
add_theme_support( 'post-formats', array( 'audio', 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );
// Declare WooCommerce support
add_theme_support( 'woocommerce' );
// Thumbnail sizes
add_image_size( 'thumb-small', 160, 160, true );
add_image_size( 'thumb-medium', 520, 318, true );
add_image_size( 'thumb-large', 720, 440, true );
// Custom menu areas
register_nav_menus( array(
'topbar' => 'Topbar',
'header' => 'Header',
'footer' => 'Footer',
) );
}
Thread Starter
tekka
(@tekka)
Thanks – that has worked now after amending the functions.php and regenerating thumbnails 🙂