• Resolved bloxgros

    (@bloxgros)


    Hi, I made some plugin actualization and a few days ago I found this problem:

    When I add new post with featured image I see on frontpage (and archives, taxonomies) full size image thumnail insetad of “medium size”. If you check out the site now, it is only the newest post (the frog).
    I tried to deactivate all the plugins but problem is still there.
    Can you please help me?

    Thank you very much

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey bloxgros,
    So I have a question just so I can know a little bit more about your situation. Are you using a custom theme or a theme from the WordPress repo or another place?

    If you haven’t done so already, check your home.php or front-page.php (which ever one your theme is using) and check to see if the the_post_thumbnail call has ‘medium’ as a parameter.

    You also might want to try using the Regenerate Thumbnails plugin to recreate the thumbnails for each post and each size.

    Thread Starter bloxgros

    (@bloxgros)

    Hi Jacob, thank you for your reply. Im using pixgraphy theme (https://www.ads-software.com/themes/pixgraphy/). I tried to use regenerate thumbnails plugin but it didnt help. I will check out the the_post_thumbnail parameters and will let you know. Thank you.

    Thread Starter bloxgros

    (@bloxgros)

    Hi Jacob,

    thank you very much! I found the problem in content.php, where I had to replace ‘post-thumbnails’ with ‘martin-home’:

    $image .= get_the_post_thumbnail( $post->ID, ‘martin-home’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ) ) ).’‘;

    and to add this to functions.php:

    add_theme_support( ‘post-thumbnails’ );
    add_image_size( ‘martin-home’, ‘462’, ‘0’, true );

    Awesome! I’m glad you were able to fix the issue. It does sound like you’ll need to put these changes into a child theme so that they don’t get overwritten when there’s a theme update. I’ve put links on how to do that below.

    Child Theme Links
    https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/
    https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorial

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I have full size images instead of “medium” size on frontpage’ is closed to new replies.