Jetpack / Minileven – Increase Featured Image Size
-
Jetpack and Minileven is awesome. Thanks ??
I have one minor issue. Every time I upgrade, I have to edit the Minileven content.php file from this:
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'jetpack' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="minileven-featured-thumbnail"><?php the_post_thumbnail(); ?></a>
to this:
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'jetpack' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="minileven-featured-thumbnail"><?php the_post_thumbnail('large'); ?></a>
I.e. I add the “large” parameter to the_post_thumbnail function call.
I have to do this so that the “Featured” image for each blog post renders as full size on mobile devices, otherwise the featured image only takes up half the width of the mobile device.
Is there a better way of doing this? Should I really have to do this after each upgrade? Is there (or should there be) some setting I can adjust in Jetpack or WordPress so that the featured image is displayed at the larger resolution?
Thanks in advance for your advice.
The page I need help with: [log in to see the link]
- The topic ‘Jetpack / Minileven – Increase Featured Image Size’ is closed to new replies.