BuddyBoss Home – Web Support Forums Themes Boss. theme Blurry thumbnail image in post

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #62629
    @atcom

    Thumbnail/Feature images are displayed clearly, but when entering a single post page the thumbnail is blurry. I looked into it and saw that single.php was updated after this question: tweak: single post header picture wrong

    The old template to display the thumbnail looks like :

    <?php 
        	$is_photo = '';
        	$style = '';
            $id = get_post_thumbnail_id($post->ID); 
            $style = 'style="background-image: url('.wp_get_attachment_url($id).')"';
            $is_photo = 'data-photo="yes"';
    ?>

    When I use the old version the thumbnail images in a single post page is no longer blurry. Is there an issue with the updated version, or am I missing something?

    Answers

    #62810
    @vapvarun

    Hi @atcom
    Size parameter is not included at present, it’s the same codes as we had earlier just little more organized.
    We have not added small or media option to keep original image used

    
     $style = ( has_post_thumbnail() && boss_get_option( 'boss_cover_blog' ) ) ? 'style="background-image: url(' . get_the_post_thumbnail_url( $post ) . '); background-position: center;background-size: cover;background-repeat: none;" data-photo="yes"' : '';
    

    If previous version of codes if working fine for you you can keep the single.php from older version to child theme folder.

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Blurry thumbnail image in post’ is closed to new replies.