How can I change the featured image size?

Community Forums Forums Design Tips and Tricks How can I change the featured image size?

This topic is: not resolved

This topic contains 7 replies, has 5 voices, and was last updated by  Susan 1 year, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9817

    theMikeD
    Participant
    Post count: 20

    I have a layout for the blog home page that is set to show six posts with the excerpt and featured image for each.

    For the first post, I would like the featured image to be larger (size “large”). I have the logic for that done already, but I don’t know how to tell genesis to make that one, single, featured image larger.

    Can anyone point me in the right direction?

    …Mike

    #9825

    jtdatawork
    Participant
    Post count: 43

    Mike,

    Maybe you already tried this, but I think you should be able to go to your theme function file where the featured image sizes are set and place your argument there. Good luck.

     


    JT Dataworks Web design and SEO

    #9837

    theMikeD
    Participant
    Post count: 20

    Thanks for the reply. The size is already set up as part of wordpress, so I know that works. The goal is to be able to tell genesis to use the “large” size for the image.

    For example, in the genesis core file called post.php there exists the following:

    function genesis_do_post_image() {

    if ( ! is_singular() && genesis_get_option( ‘content_archive_thumbnail’ ) ) {
    $img = genesis_get_image( array( ‘format’ => ‘html’, ‘size’ => genesis_get_option( ‘image_size’ ), ‘attr’ => array( ‘class’ => ‘alignleft post-image’ ) ) );
    printf( ‘<a href=”%s” title=”%s”>%s</a>’, get_permalink(), the_title_attribute( ‘echo=0′ ), $img );
    }

    }

    If I change the highlighted to

    ‘size’ => ‘large’

    I get the behaviour I want…but for all posts, not just the first one. What I want is a way to say “Make a given post have the large size image”

    …Mike

    #9840

    Chris Cree
    Participant
    Post count: 147

    It sounds like what you really want is a Grid Loop. Here is the tutorial page for that: http://my.studiopress.com/tutorials/genesis-grid-loop/


    #9843

    theMikeD
    Participant
    Post count: 20

    Yes and no. I have already implemented the grid loop. But using a grid as an example, what I want is a full-size post first, then a grid under it. I think I may have solved it however…I’ll report back.

    #9847

    theMikeD
    Participant
    Post count: 20

    OK, if I tell genesis to use the large image in the UI, I can restrict the image size for smaller images in CSS. A dumb, clumsy, mobile-unfriendly solution but it doesn’t look like genesis has the ability to change this.

    #9914

    And_or
    Participant
    Post count: 42

    Just use 2 widgets on top of each other. Using the plugin http://wordpress.org/extend/plugins/genesis-featured-widget-amplified/ you set different properties for each. The first one to display the latest post and the second display whatever number you want, but set an offset of 1. Each instance will provide you with a choice for the image size you want to use.


    Simplicity is not Simple Webtaurus

    #9920

    Susan
    Moderator
    Post count: 9253

    Yes and no. I have already implemented the grid loop. But using a grid as an example, what I want is a full-size post first, then a grid under it. I think I may have solved it however…I’ll report back.

    I know you’ve already had suggestions on how to implement this, but seeing this comment ^ made me jump in. Another member had a similar question the other day. My solution gave her one full size post with the featured image, and 6 excerpts with the thumbnail size image. You could adjust the thumbnail size image to make them be larger than thumbnail:

    http://www.studiopress.com/forums/topic/one-full-post-then-excerpts/

    my suggestion in that thread: http://www.studiopress.com/forums/reply/reply-to-one-full-post-then-excerpts-4/


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.