Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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, 4 months ago by Lilo.
    #482197

    Hey 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,
    Elliott

    #482399

    Hi 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

    #482854

    Hi!

    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,
    Ismael

    #491891

    Hi,
    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,
    Lilo

    #491899

    Hey!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Masonry imagesize’ is closed to new replies.