• Resolved gediweb

    (@gediweb)


    One more issue. The blog posts are using small sized images. The all look very blurry. How can I force the image to use either large or full size image?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gediweb

    (@gediweb)

    Never mind. Here is how I made it work:

    1. I duplicated post-item.php in my child theme
    2. Replaced the image code with a call to the full-size image. (https://prnt.sc/C5T8oP6l4TjB)
    3. Images are clear now
    Plugin Author Pawel Grzelkowski

    (@grzelkowski)

    Hey, you can also do this without duplicating the template file 🙂

    If you drop this into your functions.php, it’ll force the post image to use the full size:

    function customize_post_image( $output, $template, $quick_ajax_id ) {
    if ( $template === 'post-item' ) {
    if ( has_post_thumbnail() ) {
    $output = '<div class="qapl-post-image">' . get_the_post_thumbnail( get_the_ID(), 'full' ) . '</div>';
    }
    }
    return $output;
    }
    add_filter( 'qapl_template_post_item_image', 'customize_post_image', 10, 3 );
    Thread Starter gediweb

    (@gediweb)

    Thanks Pawel!

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