Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #630115

    Hi
    I want the featured image on my single blog page to be cropped in to a certain size. Full width and 350 px height.

    I´ve been looking around in the support forum and found ways to resize the featured image with functions.php and the regenerate thumbnails, but it´s not working for me. Am I missing something or is there a error somewhere messing it up for me?

    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>350 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>350 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>350 ); // images for fullsize pages and fullsize slider

    I changed the values in functions.php, I regenerated thumbnails, cleared cache, updated the browser, tried different browsers..

    #631036

    Hey isveian,

    Do you mind creating a temporary admin login and posting it here privately? Changing the last line should have worked.

    Best regards,
    Yigit

    #631234

    Sure, here it is.

    #631347

    Hi,

    I noticed that you copied whole functions.php file from your parent theme to child theme. It is not necessary. Please remove it and only add additional functions you need in functions.php file of your child theme. To change image size, please use following one

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

    then regenerate thumbnails – https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Yigit

    #631579

    Thanks!
    Almost, but still not quite there.

    So I had three posts published, and the image changed to right size only in one post (the newest).
    I uploaded a new post right now for testing and it came out right. (the one with the blue picture, oldest date).

    So for the two images that did´nt change, I ended ut deleting the images and uploaded all new. The weird thing, they still have the wrong size. I even gave them new names local on my computer before uploading them, and still they are not cropped.

    I once again regenerated thumbnails and cleared cache, updated browser multiple times, checked in different browsers.

    #631582

    Hey!

    Are there any other changes you made in functions.php file? If there are, can you please have a backup of the file and let us know so we can look into it once again?

    Cheers!
    Yigit

    #631591

    In the child functions.php the only code now is the one you sent me.
    In the parent theme functions.php the only changes I ever made was the values of the image sizes.

    #631614

    Hi!

    Are we allowed the deactivate all plugins for testing purposes?

    Regards,
    Yigit

    #631617

    Sure, go a head.

    #631620

    Hey!

    I deactivated all active plugins and it helped. Please try activating them one by one to find the culprit :)

    Cheers!
    Yigit

    #631893

    Thanks a lot, Yigit!
    Great support, great theme :)

    #632034

    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 :)

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Featured Image Resize not working’ is closed to new replies.