-
AuthorPosts
-
July 15, 2015 at 3:04 pm #473767
Hello!
Quick question: how do I change the dimension of the following?
“Single author, small preview pic (no author picture is displayed, featured image is small) ”I’ve inserted the following in quick css:
$avia_config[‘imgSize’][‘square’] = array(‘width’=>144, ‘height’=>81);However the images are still showing up as square:
http://grab.by/IQ3II’d like the images to be displayed at 144×81 pixels, however this doesn’t seem to be happening. I’ve regenerated all thumbnails, and uploaded images that are 144×81 while keeping their name (image name)-180×180 intact. In other words, I uploaded images under the old name of (image name)-180×180 but changed the actual image dimensions to 144×81.
thanks for your help!
July 15, 2015 at 3:19 pm #473776Hey Rshaules!
Code should not go to Quick CSS field. I removed it from there. Please add following code to Functions.php file in Appearance > Editor
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['square'] = array('width'=>144, 'height'=>81 ); return $size; }
and then regenerate thumbnails
Cheers!
YigitJuly 15, 2015 at 4:00 pm #473816Thanks so much for your quick reply!
I’ve added the code as suggested and have hit the button to regenerate thumbnails. For some reason nothing seems to happen, and it continues saying “regenerating 1 of 123” and not going anywhere:
Any suggestions?
July 15, 2015 at 4:09 pm #473828Hi!
Which plugin are you using to regenerate thumbnails? Please use this one – https://wordpress.org/plugins/regenerate-thumbnails/
Regards,
YigitJuly 15, 2015 at 4:17 pm #473833Thanks! I’m trying it out now :)
July 15, 2015 at 4:36 pm #473846So sorry to trouble you… have regenerated several thumbnails and all thumbnails are still showing up as square (even those that were changed):
July 16, 2015 at 3:39 pm #474377I think the code you’ve given me has made it worse:
Now the image is incredibly tiny, and is only being shown within the original constraints of the square… I think I’m better off restoring the default setting rather than risking things getting worse.
-Richard
July 17, 2015 at 8:20 am #474717Hi Richard,
I wanted to have a look at the page in your initial post but it redirects me to a login screen even though I’m logged in, what do we need to do to view the page?
Regards,
RikardJuly 17, 2015 at 8:25 am #474720Can you please try to log out and then login again?
The specific page in question is the home page:
http://www.christianholydays.com.au
If you have a look at the thumbnails, you’ll see they are rendering incorrectly…
July 17, 2015 at 9:07 am #474738Please forgive me, I was working between two websites and gave you the incorrect login details.
Here are the correct details:
And again, please feel free to take a look at the homepage (www.christianholydays.com.au) to see the error of the thumbnails
July 19, 2015 at 6:48 am #475338Hey guys, I’ve fixed the problem and have been able to return all images back to the desired sizes. Here are the steps of the solution:
1. Enter the following:
add_filter( ‘avf_modify_thumb_size’, ‘enfold_customization_modify_thumb_size’, 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size[‘square’] = array(‘width’=>81, ‘height’=>81 );
return $size;
}2. Changed the dimensions of ‘square’ using “simple image sizes” by Nicolas Juen plugin, from 180×180 to 81×81.
3. Regenerated thumbnails using the “Regenerate Thumbnails” by József Koller plugin.
It should be noted that even though the default ‘square’ size as provided by enfold is 180×180, this gets resized automatically to 81×81 so it’s pointless to have thumbnails generated at 180×180 when they won’t even display that size. You can see what I’m talking about here: http://grab.by/IVwM
July 20, 2015 at 8:03 am #475608Hi Richard,
Great, glad you got it fixed. Thanks for sharing your solution and please let us know if you should need any further help on the topic.
Cheers!
RikardSeptember 24, 2015 at 8:08 pm #508679Very important function!!
DO you know how to deactivate the thumbnails.
With a function in the childtheme – please?September 25, 2015 at 3:16 pm #509084 -
AuthorPosts
- The topic ‘Changing thumbnail dimensions of’ is closed to new replies.