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 #3848472
Low resolution images on featured slider
Open

Comments

  • Begum started the conversation

    I'm using featured slider at my homepage. I always upload high resolution images to the featured posts, but on featured slider displayed images are very low quality. I searched for the issue and find a similar thing asked in another theme's support: https://pencidesign.ticksy.com/ticket/3824364

    As suggested there, I tried Appearance → Customize → General Options → Manage Image Size then check all the "Disable image size..." options in this section. And clear cache.

    But nothing changed. I still have low res images on featured slider 

  •  2,790
    PenciDesign replied

    Hi,

    For this case, please send me your WordPress admin account in a PRIVATE reply.
    I'll log in and try to help you modify the image size for this element.

    Regards,
    PenciDesign.

  • Begum replied

    I'd appreciate it if you could explain it to me, so I can make the changes by myself. So that other people who have the same issue can also solve their problems.

  •  2,790
    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_full_size_thumbnail($html, $post_id, $post_thumbnail_id, $size, $attr) {
        return wp_get_attachment_image($post_thumbnail_id, 'full', false, $attr);
    }
    add_filter('post_thumbnail_html', 'penci_force_full_size_thumbnail', 10, 5);
    

    Regards,
    PenciDesign.

  • Begum replied

    Thanks a lot. Applying the code solved my low resolution problem. But I think this affected all of the thumbnails, not only the featured slider images. Via Code Snippet plugin I placed the code to run only on homepage and it slowed down my homepage a bit. Is it possible to apply it "only" to featured slider images? All the other little thumbnails don't need to be in high resolution. 

  •  2,790
    PenciDesign replied

    Hi,

    Unfortunately, there is no available hook or custom code to modify this. If you want to display a custom size for the featured slider only, you will need to edit the template file directly.

    Regards,
    PenciDesign.