Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3824364
Low quality images are showing on featured slider
Open

Comments

  •  1
    priyam_logixplus started the conversation

    Hello,

    We have implemented one of the featured slider on our website home page. However, the thumbnail images showing are of low quality. The image on the original post are in high resolution. How can we fix this? We want the same quality as per the demo site.

  •  2,727
    PenciDesign replied

    Hi,

    Please go to Appearance → Customize → General Options → Manage Image Sizes From This Theme, then check all the "Disable image size..." options in this section.

    After that, clear your site cache and check again.

    Regards,
    PenciDesign.

  •  1
    priyam_logixplus replied

    Hi,

    Thanks for your inputs. We have disabled all the image sizing options. Cleared our website cache. However, there is no change in the image quality. It still shows the same. Refer to the attached screenshot. Are there any additional settings we need to update?


    Attached files:  bij-disable.jpg

  •  2,727
    PenciDesign replied

    Hi,

    You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

    function penci_force_fullsize_images($out, $id, $size) {
        // Check if the image ID is valid
        if (!is_numeric($id) || $id <= 0) {
            return $out; // Return original if invalid ID
        }
    
        // Check if we already have a valid output. If we do, we should not change it.
        if(is_array($out) && !empty($out[0])) {
            return $out;
        }
    
        // Attempt to get the full-size image URL
        $image_url = wp_get_attachment_image_src($id, 'full');
    
        // If a full-size image URL is found, return it
        if ($image_url) {
            return array($image_url[0], $image_url[1], $image_url[2], true);
        }
    
        // If no full-size image is found, return the original output
        return $out;
    }
    
    add_filter('image_downsize', 'penci_force_fullsize_images', 10, 3);

    Regards,
    PenciDesign.