Community Forums › Forums › Archived Forums › Design Tips and Tricks › How can I change the featured image size?
- This topic has 7 replies, 5 voices, and was last updated 10 years, 2 months ago by
Susan.
-
AuthorPosts
-
January 5, 2013 at 6:31 pm #9817
theMikeD
ParticipantI 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
January 5, 2013 at 7:05 pm #9825jtdatawork
MemberMike,
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
January 5, 2013 at 8:07 pm #9837theMikeD
ParticipantThanks 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
January 5, 2013 at 8:18 pm #9840Chris Cree
ParticipantIt 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/
January 5, 2013 at 8:23 pm #9843theMikeD
ParticipantYes 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.
January 5, 2013 at 8:36 pm #9847theMikeD
ParticipantOK, 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.
January 6, 2013 at 7:53 am #9914And_or
ParticipantJust 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
January 6, 2013 at 8:46 am #9920Susan
ModeratorYes 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.community/topic/one-full-post-then-excerpts/
my suggestion in that thread: http://www.studiopress.community/reply/reply-to-one-full-post-then-excerpts-4/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.