Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1078773

    Hi,

    I have found the solution to change the image size directly in the functions.php of the enfold theme. Is there any way to change the image size in the functions.php of the child theme. My ways to try to override the existing images through add_image_size(‘entry_without_sidebar’, 1210,680,true); does not work.
    This would allow us to keep the setting even when the theme is updated.
    Thanks,

    Benedikt

    #1079972

    Hey Benedikt,

    Try using this code in your child theme’s functions.php:

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
      $size['entry_without_sidebar'] = array('width'=>1210, 'height'=>680, 'crop' => true);
      return $size;
    }

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.