Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #516935

    Hi,
    I am using the ‘blog posts’ element in my page builder,
    The featured image of the posts is too small: 80×80. I tried to change it in the blog posts configuration, but I did not succeed to remain feature image in the correct size and text besides it.
    Can you please help?

    #516948

    Hey eyeweb!

    Add this to your custom CSS.

    a.small-preview, a.small-preview img {
        width: 120px !important;
        height: 120px !important;
    }

    Best regards,
    Elliott

    #516968

    Thank you Elliott, but why are the thumbnails stretched? (the original images are 800×600)

    • This reply was modified 9 years, 1 month ago by eyeweb.
    #516979

    Hey!

    You can change the size on line 118 in the /enfold/functions.php file.

    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    

    Make sure to regenerate the thumbnails afterwards, http://wordpress.org/extend/plugins/regenerate-thumbnails/.

    Best regards,
    Elliott

    #517171

    Thank you Elliott, is it ok to paste this code as it is in my functions.php file in my child theme?

    #517463

    Hi!

    You can add following code to functions.php file of your child theme

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

    adjust as needed then regenerate the thumbnails afterwards, http://wordpress.org/extend/plugins/regenerate-thumbnails/.

    Best regards,
    Yigit

    #517498

    I added the code than regenerated thumbnails.
    The images are still stretched.
    For example:

    #517506

    Shalom!

    Please go to Settings > Media and change thumbnail sizes to 180x120px

    Best regards,
    Yigit

    #517528

    Thank you Yigit!

    #517869

    Hi,

    Glad we could help :-)

    Thanks,
    Rikard

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