Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #330698

    I’m using the “single author, big preview pic (featured image is big)” blog style. The featured image is being cropped in height and I want it to show full size (no change to the aspect ratio) in both the blog list and on the blog single post pages. What’s the CSS code to prevent the featured image from being cropped?

    #331208

    I’d like to know the same, please. Many thanks to the support team for the help.

    #332110

    Anyone have any ideas?

    #332548

    Hey!

    Please go to Appearance > Editor and open Functions.php file and find

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider

    and change the values as needed and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/

    Regards,
    Yigit

    #332615

    I’ll give that a try. Thanks.

    #332708

    Hi Yigit,

    If I’m using the Enfold child theme, can I add that line of code to the child functions.php file, i.e., will that code overwrite the main theme’s code? Or, in this case, do I have to edit the Enfold theme’s function file directly?

    Please advise.

    Cheers,

    Tim

    #332876

    Hey!

    Yes, you can place it on the child theme or use this plugin: https://wordpress.org/plugins/simple-image-sizes/

    Best regards,
    Ismael

    #333466

    This worked great. Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to maintain aspect ratio for big preview (featured image) on blog’ is closed to new replies.