Welcome! To use this support forum, please Login or Join Today!


Page featured image size


Total Posts: 2

Joined 2017-10-28




I’ve been building a new website with the Stella theme which is perfect for this website! :) I’ve changed the featured image sizes in functions.php (see below) and for the slider and product images this has worked fine. But for the featured image of pages, it is still the ‘old’ image size dimensions which are showing (on my laptop, approximately 1100 x 275 px). See http://rhedelijk.staging.wpengine.com/over-muziek/

How can I also change the featured image size of pages? I’ve checked css and all source files but I haven’t been able to find where that size is set.



* Filter the featured thumbnail (wide option) image sizes
function child_featured_images($image_sizes) {
  global $post;
  $small = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(600,300,true) );
  $medium = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(800,400,true) );
  $large = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(1200,600,true) );
  $image_sizes = array(
    ‘source’ => array(
      ‘0px’  => $small[0],
      ‘800px’  => $medium[0],
      ‘1200px’ => $large[0]
  return $image_sizes;
add_filter( ‘wide_image_sizes’, ‘child_featured_images’ );