Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #431564

    Hallo,
    I’ would like to modify the size of post image whitout modify function.php.
    I use a child theme, anch Kriesi write me:
    “We got a wordpress filter that would be able to filter the file sizes of all the thumbnail images created called “avf_modify_thumb_size”

    If you are using a child theme you could use a custom function to filter the output so you don’t need to directly code into the themes functions.php file.

    If thats a solution that you like feel free opening up a thread in our support forum. I am currently busy updating the theme but my support team will take care of you and provide the filter function”

    Can you explain me this solution?

    Thanks

    #432178

    Hey elisabertoldi!

    Try adding this to your child theme functions.php file.

    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'=>345, 'height'=>321);
    	return $size;	
    }

    And replace “entry_with_sidebar” with the image size and dimensions you wish to use.

    If you do not see any changes then you may need to regenerate your thumbnails, https://wordpress.org/plugins/regenerate-thumbnails/.

    Cheers!
    Elliott

    #432184

    Great!
    It’s all that I need.
    Thanks!

    #432587

    Hi!

    Great, glad we could help.

    Cheers!
    Rikard

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