• Resolved beegee72

    (@beegee72)


    I have had my site up and running for a few days, but I recently noticed that the images on the front page sometimes show up as smaller thumbnails, even when I have set them to show full size in the post.

    I’m not sure if this is a problem on the server side or my browser messing with me.

    https://nsacomic.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • You may need to check the post thumbnail hook. See if you have declared the default output size here.

    However, you could create a custom image size. Add it to your functions file. Modify the hook on the template and add the custom image size name. This would force WordPress to use the set parameters.

    Add to functions.php

    add_image_size( 'your-custom-size', 220, 180 ); // Width, Height, Crop {true or false}
    
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );
    
    function my_custom_sizes( $sizes ) {
        return array_merge( $sizes, array(
            'your-custom-size' => __( 'Your Custom Size Name' ),
        ) );
    }

    Add to Template
    the_post_thumbnail( 'your-custom-size' );

    Thread Starter beegee72

    (@beegee72)

    Thanks, I’ll try to see if that will fix the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images not always showing full size’ is closed to new replies.