• Resolved Neilius

    (@neilius)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi there!

    Have you tried using a child theme or a functionality plugin to keep that updated?

    In my opinion the a child theme would be the best solution between the two.
    There are some useful resources you can check to help you get a child theme:

    https://codex.www.ads-software.com/Child_Themes
    https://codex.www.ads-software.com/Theme_Development#Child_Themes
    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    All in all, my ultimate advice would be to switch to a theme that’s mobile friendly, so you won’t need to keep the Jetpack Mobile feature enables. I know that this cannot be doable for you for a number of reasons, though, but I wanted to point that out anyway ??

    Hope that answers your question!

    • This reply was modified 6 years, 3 months ago by Stef (a11n).
    Thread Starter Neilius

    (@neilius)

    Hi Stef

    Thanks for the excellent suggestions. I suspect the functionality plugin is the easiest solution – I didn’t even know I could do that, so I’ve learned something new today.

    I do have a child theme, but it’s not mobile friendly, which is why I am using Minileven.

    Yes – I want very much to switch to a mobile friendly, responsive theme. I’d appreciate you explaining why you “know that this cannot be doable…for a number of reasons”. Am I doing something wrong? Perhaps I will learn something else new today ??

    Your website is awesome BTW.

    Plugin Support KokkieH

    (@kokkieh)

    Hi there,

    I’d appreciate you explaining why you “know that this cannot be doable…for a number of reasons”.

    I think Stef just meant that you might not want to switch away from your current theme. If you don’t have a specific reason to stick with your current theme, then by all means look at a mobile-responsive replacement.

    Just keep in mind the usual things – make sure you have a current backup of your site so you can restore if something goes wrong during a theme switch, consider installing the new theme on a staging site or a local install first to check for potential incompatibility issues, etc.

    You can find the official documentation on changing themes here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Jetpack / Minileven – Increase Featured Image Size’ is closed to new replies.