Okay
  Public Ticket #1713819
Featured image display on front page
Closed

Comments

  • tbergant started the conversation

    Hi,

    I am building a photography portfolio and I would like to show the most recent additions to my portfolio on the front page (by integration portfolio items)

    However, the image shows in very bad quality, as if the thumbnail from the portfolio would have been upscaled or something.

    The images I use for the portfolio pages have 1400 × 883px and I am trying this on a 13" laptop, so it should be fine.

    Is there any setting that I have missed?

    Cheers,

    Tom

  • [deleted] replied

    Hi Tom,

    If you want to show original quality of images then I can give you the code for that. Please add the following code in functions.php (end of file):

    function kalium_portfolio_loop_thumbnail_size_original( $size ) {
        $size = 'original';
        return $size;
    }
    add_filter( 'kalium_portfolio_loop_thumbnail_size', 'kalium_portfolio_loop_thumbnail_size_original' );

    Please let me know if this approach works for you. 

  • tbergant replied

    Hi,

    thanks. Yes, it worked! I had to change it via FTP though, Wordpress wouldn't let me save the changes..


    BR,

    Thomas


  • tbergant replied

    Hi,

    actually, there is still a problem. Now that the original files are used on the main page, the thumbnails in the portfolio gallery are not the same size anymore.

    How can I fix this?

    Cheers Thomas

  • [deleted] replied

    Hi Thomas,

    I don't see this problem in your site for the moment:

    (view on a new page)

    Have you solved it please?

    Thanks!