Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #557394

    Hi there!

    What is the best way to change the ratio of the featured image in a portfolio grid?
    I want them to be 235x150px.

    Please take a look at: http://cinterieur.com/cinterieur/portfolio/
    If I upload the images in the right ratio, then it is fine. But my client wants not to crop the images before uploading.

    I hope to hear from you, and happy holidays ;-))

    Best Regards, Annelies

    #557513

    Hi Annelies!

    You can change the thumbnail size for those on line 122 in the functions.php file.

    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    

    Use this plugin to regenerate the thumbnails after doing the change, http://wordpress.org/extend/plugins/regenerate-thumbnails/.

    Best regards,
    Elliott

    #559814

    Thanks Elliot,
    I made the changes in the functions.php of the Enfold theme, in the functions.php of my child-theme it didn’t work. Is it possible to have it work in the functions.php of my childtheme? Than it is still ok after updating Enfold ;-)

    Best regards, Annelies

    #560043

    Hi!

    Please 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['portfolio'] 		 	= array('width'=>495, 'height'=>400);		
    	return $size;	
    }

    Cheers!
    Yigit

    #607839

    Thanks, I got it.

    #607898

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Featured image portfolio dimensions’ is closed to new replies.