-
AuthorPosts
-
October 11, 2015 at 1:23 pm #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?October 11, 2015 at 3:05 pm #516948Hey eyeweb!
Add this to your custom CSS.
a.small-preview, a.small-preview img { width: 120px !important; height: 120px !important; }Best regards,
ElliottOctober 11, 2015 at 3:32 pm #516968Thank you Elliott, but why are the thumbnails stretched? (the original images are 800×600)
-
This reply was modified 10 years ago by
eyeweb.
October 11, 2015 at 3:54 pm #516979Hey!
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 blogsMake sure to regenerate the thumbnails afterwards, http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Best regards,
ElliottOctober 12, 2015 at 8:46 am #517171Thank you Elliott, is it ok to paste this code as it is in my functions.php file in my child theme?
October 12, 2015 at 4:08 pm #517463Hi!
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,
YigitOctober 12, 2015 at 4:34 pm #517498I added the code than regenerated thumbnails.
The images are still stretched.
For example:October 12, 2015 at 4:38 pm #517506Shalom!
Please go to Settings > Media and change thumbnail sizes to 180x120px
Best regards,
YigitOctober 12, 2015 at 5:12 pm #517528Thank you Yigit!
October 13, 2015 at 8:13 am #517869 -
This reply was modified 10 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
