Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Brecht

    (@brechtvds)

    Could you give me a link to a page on your website where you’re having the problem?

    Kind regards,
    Brecht

    Plugin Author Brecht

    (@brechtvds)

    Could you give me a link to a recipe on your website so I can take a look at the problem?

    Brecht

    Thread Starter bowenjia

    (@bowenjia)

    Plugin Author Brecht

    (@brechtvds)

    The actual image file that’s being used is already distorted, apparently:
    http://www.bowenjia.com/bbqgrills/wp-content/uploads/2015/07/Babyback-ribs-600×9999.jpg

    Could you try regenerating all thumbnails and see if that helps?
    https://wordpress.org/plugins/regenerate-thumbnails/

    Thread Starter bowenjia

    (@bowenjia)

    I have tried, it did not fix the issue. But the thumbnail looks fine if switch the theme back to native one.

    When a thumbnail gets uploaded the 600*9999 get generated for some reason, but the same image will not have any issues if used as a featured image.

    This code can be found in plugins\wp-ultimate-recipe\helpers\thumbnail.php

    public function __construct()
    {
    add_action( ‘init’, array( $this, ‘theme_thumbnail_support’ ), 20 );
    add_filter( ‘post_thumbnail_html’, array( $this, ‘hide_theme_thumbnail’ ), 10 );

    // TODO Refactor
    if ( function_exists( ‘add_image_size’ ) ) {
    add_image_size( ‘recipe-thumbnail’, 150, 9999 );
    add_image_size( ‘recipe-large’, 600, 9999 );
    }
    }

    Could this be the issue?

    Cheers
    Bowen

    Plugin Author Brecht

    (@brechtvds)

    add_image_size( ‘recipe-large’, 600, 9999 ); should generate a thumbnail with 600px width and whatever height keeps the aspect ratio. Not sure why it’s stretching to exactly those dimensions.

    Is there anyone you can contact over at the theme developers?

    Brecht

    Thread Starter bowenjia

    (@bowenjia)

    Thanks for the fast reply!
    Have not contacted them yet, but will try tomorrow to find out if this caused by the theme.

    Thank you!

    Thread Starter bowenjia

    (@bowenjia)

    Hi:
    I wonder if I can change the method to add_image_size( ‘recipe-large’, 600) to fix the issue for now? As just tried, I am still getting 600*9999 after the change and delete all existing thumbnails

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘thumbnail doesnt work with thefoxwp theme’ is closed to new replies.