-
AuthorPosts
-
May 10, 2016 at 5:10 pm #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 sliderI changed the values in functions.php, I regenerated thumbnails, cleared cache, updated the browser, tried different browsers..
May 12, 2016 at 12:43 am #631036Hey isveian,
Do you mind creating a temporary admin login and posting it here privately? Changing the last line should have worked.
Best regards,
YigitMay 12, 2016 at 9:24 am #631234Sure, here it is.
May 12, 2016 at 1:42 pm #631347Hi,
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,
YigitMay 12, 2016 at 8:24 pm #631579Thanks!
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.
May 12, 2016 at 8:40 pm #631582Hey!
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!
YigitMay 12, 2016 at 8:55 pm #631591In 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.May 12, 2016 at 9:31 pm #631614May 12, 2016 at 9:37 pm #631617Sure, go a head.
May 12, 2016 at 9:45 pm #631620Hey!
I deactivated all active plugins and it helped. Please try activating them one by one to find the culprit :)
Cheers!
YigitMay 13, 2016 at 8:16 am #631893Thanks a lot, Yigit!
Great support, great theme :)May 13, 2016 at 1:21 pm #632034Hi,
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 -
AuthorPosts
- The topic ‘Featured Image Resize not working’ is closed to new replies.