Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1210333

    Recently I have noticed that clicking on images to enlarge them is now displaying a smaller sized file than the original. Here is an example:

    Scroll down past the full screen slideshow. There are then 12x designs. Clicking on any of these brings up an image sized 1030×670 px. The original images are all 3000px wide. So this should be showing a really good quality image rather than this low res one.

    I am using a GALLERY – small thumbnails – original size (no scaling) – using the Lightbox.

    Is there perhaps a global setting that can change this so that the Lightbox uses the largest full size image?

    Thanks

    #1210374

    Actually I didn’t want to give any more advice when the right click is blocked. Why are you making it hard on the one who wants to help?

    Anyway: for the lightbox image size there are some snippets depending on what is shown :

    in your child-theme functions.php you can try this:

    function avia_change_masonry_thumbnail_link($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    or that:

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
        $link = wp_get_attachment_image_src($attachment->ID, "full");
        return $link;
    }
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);

    then the full image is taken instead of the large one!
    if you like to enlarge the lightbox window – we will see when the above is done.

    #1210375

    Hiya,
    Sorry I forgot that was still active! Will give both a try. Thank you.

    #1210377

    The second one has worked PERFECTLY. Thank you much appreciated.

    #1210384

    What I do not quite understand is that your entire body remains scrollable. With the New Enfold, I thought that was fixed. It means Lightbox window is only scrollable if content is too big and background is fixed.
    Did you change anything about that?
    You can see here behavior of lightbox images what i mean: https://webers-testseite.de/abcdef/

    #1210392

    Hiya, No I haven’t changed anything to make this happen. To be honest I didn’t notice it.
    I have placed the content in the functions.php file below.
    I’m happy with it as it is anyway. So don’t worry on my account.

    Colin

    #1210614

    Hi Colin,

    Thanks for the update, so everything is working as it should now then? Thanks
    to @guenni007 for helping out :-)

    Best regards,
    Rikard

    #1210672

    All working fine thank you!

    #1210937

    Hi,

    Great, thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.