• Resolved ckadmin

    (@ckadmin)


    Hi, I am using MH Magazine Lite theme. I want to hide the featured image from few posts. Please let me know if there is a way to do so.
    Please note that I do not want to remove featured image from all posts, but only some specific posts.

    Thanks.

    • This topic was modified 8 years, 5 months ago by ckadmin.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you please post a link or two to some of the posts where you want to hide the featured image? Thanks.

    Hi ckadmin,

    the theme related support forum for MH Magazine lite is located here.

    I want to hide the featured image from few posts.

    That isn’t something that is possible out of the box, unless you code that functionality within a custom child theme. Of course you could simply hide the featured image with some CSS for the particular posts, but if you want to do this for many posts, then it will get messy.

    As an alternative you could have a look at the premium version of MH Magazine which allows to disable the featured image on a per post basis. This is also documented here.

    Thread Starter ckadmin

    (@ckadmin)

    Here is what I did.

    First I removed this line from content-single.php: <?php mh_magazine_lite_featured_image(); ?>
    This removed the featured image from all the posts.

    Then, using WP Featherlight widget, I added desired images on the top of the posts where I would like featured image to be displayed.

    Simple enough!
    This serves my purpose perfectly. I have featured images only on the posts where I add images separately.

    Great that you’ve found a workaround, but keep in mind that this isn’t related anymore to featured images, because you’ve completely removed the featured image and then you are adding images manually to your posts.

    That’s something you can do of course, but it’s not the featured image anymore, it’s just an image which you’ve embedded manually. While this may work if you just have a few posts, this isn’t a solution for someone who is dealing with hundreds or even thousands of posts. ??

    You should also be aware that unless you’ve created a child theme, your change will be lost the next time you update the theme. Most responsible theme developers will issue new versions in response to bug fixes, security patches, feature enhancements, or changes needed to support corresponding changes to the WordPress core, so you should always keep your theme up to date (especially in case there’s a security patch). Because your change is so simple, you can probably get away with just making the same modification each time you update the theme, but it’s better to create a child theme so you don’t have to worry about it in the future.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to hide featured image from specific posts in MH Magazine Lite’ is closed to new replies.