-
AuthorPosts
-
August 1, 2015 at 12:48 pm #481663
Hi,
first of all thanks for the great Theme and support!!
Recently, I built a new shop-page. I am using a flexible masonry. When I tested it in PageSpeed Insights the result was pretty bad. The biggest problem seems to be that 705×705 px Images are being loaded, can I change it to 300×300 px?
Thanks!Lilo
https://www.woodemotion.de/elegante-geschenke-aus-edelholz/
- This topic was modified 9 years, 3 months ago by Lilo.
August 3, 2015 at 4:11 pm #482197Hey Lilo!
You can change that on line 126 in the functions.php file.
$avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry
You will need to regenerate the thumbnails to the new sizes with this plugin, http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Best regards,
ElliottAugust 3, 2015 at 8:29 pm #482399Hi Elliott,
thanks for your answer, I did as you discribed. I put the line into my child themes functions.php with no result and than into the original functions.php, regenerated the thumbnails, I also emptied the cache, but Pagespeed is still showing the 705×705 versions. And it’s only giving me a 38.
Via FTP I looked into the upload folder and there are 300×300 versions.
Any ideas?
Regards,Lilo
August 4, 2015 at 5:27 pm #482854Hi!
You can do something like this in the child theme’s functions.php file:
function ava_image_sizes() { add_image_size('entry_with_sidebar', 845, 321, array('center', 'top')); add_image_size('entry_without_sidebar', 845, 321, array('center', 'top')); } add_action( 'after_setup_theme', 'ava_image_sizes', 11 );
If you want to modify the “masonry” thumbnail, adjust the code to this:
function ava_image_sizes() { add_image_size('masonry', 845, 321); } add_action( 'after_setup_theme', 'ava_image_sizes', 11 );
Again, you have to regenerate the thumbnails by using the plugin suggested above. You can also use this plugin: https://wordpress.org/plugins/simple-image-sizes/
Regards,
IsmaelAugust 23, 2015 at 8:47 pm #491891Hi,
I tried all of your suggestions and variations. Nothing worked.
So I changed it back, when someone complained that he couldn’t even reach my shoppage.
I am done with experiments !Thanks anyway.
Regards,
LiloAugust 23, 2015 at 9:32 pm #491899Hey!
I am sorry you did not find out out a solution.
Please do not hesitate to contact us, for anything else, we would love to assist you further.Best regards,
Basilis -
AuthorPosts
- The topic ‘Masonry imagesize’ is closed to new replies.