Home Forums Theme support lambada theme – Media modal uses full image size

This topic contains 5 replies, has 2 voices, and was last updated by  7Theme Support 6 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Hi there,

    I’ve noticed the Media modal popup uses full imagesize images and shows them in a thumbnail size. My client uploaded a lot of high quality photos and WordPress instantly became very slow when viewing the Media page in the admin area.

    Some research pointed me to https://core.trac.wordpress.org/ticket/25452 and other articles where users said it could be due to a Theme not providing the “medium” size_name.

    Is this true for Lambada or do you have a fix?

    Thanks in advance!

    Hi,

    yes, the theme have not this image, because most of our users dont want to have 10 different image size for one uploaded image, because this will be a big problem on shared hosting.

    If you want, you can open the file “crop.php” in the “7league/” folder and remove line 9. Then you can run this plugin:

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

    great, works like a charm. Curious though, if WordPress uses this medium sized image for its Media modal, why would a theme unset this version? We all end up with extremely slow admin media page, due to its loading original size images…

    Is there a way to disable this unset in a child theme? So we are able to update flawlessly in a next update?

    Do you an ETA for the next update 2.0.1 (where the mobile menu undenting is also fixed) ?

    Thanks for the great support!

    Hi Vincent,

    Curious though, if WordPress uses this medium sized image for its Media modal, why would a theme unset this version

    Yes, I know, but we have to take care of what our clients want, and most of them have big problems with too much images on their server.

    Is there a way to disable this unset in a child theme? So we are able to update flawlessly in a next update?

    Yes, you can do that. The only thing you have to add to the functions.php file in the child theme is this code:

    remove_filter('intermediate_image_sizes_advanced', sevenleague_filter_image_sizes');

    Do you an ETA for the next update 2.0.1 (where the mobile menu undenting is also fixed) ?

    This is already done…

    awesome. Thanks!

    You’re welcome!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.