WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] f8 lite thumbnail stretching on category pages (4 posts)

  1. vanesseroo
    Member
    Posted 1 year ago #

    Firstly, big thanks to the producers of the f8 theme because it's beautiful and free and is much appreciated.

    I'm working on FlipFlopsandRaincoats.com and my issue is the common one of thumbnails being stretched.

    I've found the solution for the home page and right now, that looks lovely. But on my category pages, for example, they're back to being stretched and weird. I can't figure out how to apply the solution to the cat pages (or any others for that matter).

    Here's what I tried successfully:

    On the 7th line you should find the following code:

    <?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '310', 'height' => '150' ) ); ?>

    Replace thumbnail with post-thumbnail, you should have something like this:

    <?php get_the_image( array( 'custom_key' => array( 'post-thumbnail' ), 'default_size' => 'post-thumbnail', 'width' => '310', 'height' => '150' ) ); ?>

    Here's what I've already done/doesn't work:

      Making any edits under settings > media (i.e. uncheck box "Crop thumbnail to exact dimensions" or change width allowances).
      Making sure all photos are exactly 310 x 150.

    Please help as it seems by searching for the solution I'm the only one with this particular issue. Many thanks!

  2. vanesseroo
    Member
    Posted 1 year ago #

    Note: What I "tried successfully" was only on home.php. Can't find a way to apply the same/similar for cat pages.

  3. MADianito
    Member
    Posted 1 year ago #

    i used your solution and worked as a charm in HOMEPAGE.... then went to ARCHIVE.PHP and changed the same line..... ;) that should fix the way your thumbnails look in your categories pages... thnx!

  4. vanesseroo
    Member
    Posted 1 year ago #

    Duuuuuude. So awesome, worked perfectly! Thanks for your help, likewise!

Topic Closed

This topic has been closed to new replies.

About this Topic