Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1059256

    Hello, I would like to change the image size of the”entries with sidebar” to 809 x 403

    https://goo.gl/8hPD6s

    I’ve tried this on my Functions.php in the child theme.

    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>809, ‘height’=>403);

    I read in the forum about this,, I tried with a new entry and new image but it does not work

    Can it be done without plugins?

    Regards Gracias!

    #1059263

    Hello, I have solved it in a different way from the ones proposed by the forum since they did not work for me

    In functions.php (Child Theme) i add this

    /* add new image size*/
    function ava_image_sizes() { 
    add_image_size('entry_with_sidebar', 809, 403, array('center', 'center'));
    }
    add_action( 'after_setup_theme', 'ava_image_sizes', 11 );

    and then i Regenerate Thumbnails with the Alex Mills plugin. Regenerate everything and do not skip the regeneration if the correct miniature size exists. Regenerate everything

    And work for me,

    Thanks to me! o you are wellcome :)

    #1060120

    Hi Ganubis,

    You can also use this code then use an image regeneration plugin:

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
      $size['entry_with_sidebar'] = array('width'=> 809, 'height'=> 403);
      return $size;
    }

    Or another alternative is just to use Simple Image Sizes plugin (can change the image size and regenerate images). Anyway, glad that it’s all good and thanks for sharing what worked for you :)

    Best regards,
    Nikko

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.