Hi,
I have defined some custom image sizes in my child theme, they look like this:
add_image_size( 'feat', 750, 250, true );
add_image_size( 'larger', 750, 500, false );
add_image_size( 'mega', 1200, 0, false );
add_image_size( 'fullsize', 1920, 0, false );
'feat' => __( 'featured', 'generatepress' ),
'larger' => __( 'large', 'generatepress' ),
'mega' => __( 'mega', 'generatepress' ),
'fullsize' => __( 'fullsize', 'generatepress' ),They all show up nicely for selection when you insert an image into a post, however the featured image uses the fullsize version and there are no size options to choose from.
I noticed that if I change the following parameter in lines 46 and 86 of featured-images.php
apply_filters( 'generate_page_header_default_size', 'full' ),to this:
apply_filters( 'generate_page_header_default_size', 'feat' ),it will do exactly what I need. So I put a copy of featured-images.php into my child theme but it has no effect. Only the one in the GP theme is considered by WP.
Is there a proper way to do this? Thanks much in advance.
P.S. I believe the ‘fullsize’ version is unnecessary to generate as it’s a duplicate of the original, although it’s irrelevant for the above problem.
- This topic was modified 3 hours, 58 minutes ago by .
