WordPress.org

Ready to get started?Download WordPress

Forums

origin
Resizing single-thumbnail image (2 posts)

  1. LuckiestGirlEvr
    Member
    Posted 2 years ago #

    Hi guys,

    I have quite a few featured images that are taller than the 310px and wanted to extend the single-thumbnail image height to 9999.

    I found where the single-thumbnail width and height are defined in the functions.php file:

    *  Image sizes
     *
     */
    function origin_image_sizes() {
    	add_image_size( 'single-thumbnail', 636, 310, true );
    }

    I replaced the '310' with '9999' and removed the 'true' to keep the thumbnail from being cropped at all and saved functions.php.

    Unfortunately... it's not working. All the images on top of posts and in the sticky post on the homepage return the size 636 x 310.

    Each of those images is tagged: img.single-thumbnail.featured, so I know the edit to the add_image_size single-thumbnail code is correct, but maybe I'm missing something else somewhere?

    I also checked post.php, and can see where the single-thumbnail image is being called at the top of each individual post:

    <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false ) ); ?>

    Should I be changing something else about single-thumbnail? I've thought about adding and defining a new image size in the functions.php file and changing what image gets called in the post, but thought about posting this question here first.

    Any thoughts? Any and all help is appreciated!

    http://wordpress.org/extend/plugins/origin/

  2. CAWD
    Member
    Posted 2 years ago #

    Plugin link didn't seem to exist. Is it possible that you'll need to reupload the file since it's already been resized to the 310px specific size? Or is that code just changing the size it's supposed to be displayed at?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic