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

    Hi,

    I was successfully able to change the thumbnail resolution for the Latest News Preview pic thumbnail by modifying the following line in the Enfold functions.php file:

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news

    However, it gets overwritten when I update the theme.

    I tried putting this code in my Child functions.php file but it didn’t seem to work:

    function my_image_size()
    {
    global $avia_config;

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>80, ‘height’=>80);
    }

    What code could I add to my child functions.php theme so that I don’t have to remember to change the parent .php file when I update the theme?

    Best,

    Doug

    #529318

    Hey dburton77!

    Please add following code to functions.php file of your child theme instead

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

    Regards,
    Yigit

    #529430

    Fantastic! It works. Thank you. Kriesi has the best support ever!

    Doug

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to change the Latest News thumbnail resolution in child theme’ is closed to new replies.