Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coupe WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Comment masquer les images mises en avant sur les publications individuelles dans WordPress

Note éditoriale : Nous percevons une commission sur les liens des partenaires sur WPBeginner. Les commissions n'affectent pas les opinions ou les évaluations de nos rédacteurs. En savoir plus sur Processus éditorial.

Voulez-vous masquer les images mises en avant sur des publications en avant individuelles dans WordPress ?

Il peut arriver que vous ayez une image mise en avant pour une publication, mais qu’au lieu de la supprimer, vous souhaitiez simplement la masquer à vos internautes.

Dans cet article, nous allons vous afficher comment masquer les images mises en avant sur des publications individuelles dans WordPress.

How to hide featured images on individual posts in WordPress

Quand et pourquoi est-il utile de masquer les images mises en avant dans WordPress ?

Presque tous les thèmes WordPress sont dotés d’un support intégré pour l’affichage d’images mises en avant ou de miniatures dans différentes zones de votre site.

Certains thèmes utilisent même automatiquement les fichiers joints aux publications comme image mise en avant si aucune image n’est spécifiée. Cela signifie qu’une image mise en avant sera affichée même si vous n’en définissez pas.

Toutefois, vous trouverez peut-être nécessaire de masquer l’image mise en avant dans certaines situations.

Par exemple, vous pouvez avoir une publication de blog WordPress qui semble encombrée par l’image mise en avant. Vous souhaitez néanmoins que l’image mise en avant s’affiche lorsqu’elle est répertoriée sur votre page de blog distincte.

Dans ce cas, vous voudrez la masquer sur la publication individuelle du blog sans supprimer ou retirer entièrement l’image.

Ceci étant dit, nous allons vous afficher comment masquer l’image mise en avant sur des publications individuelles dans WordPress, étape par étape.

Tutoriel vidéo

Subscribe to WPBeginner

Si vous préférez des instructions écrites, continuez à lire.

Masquer les images mises en avant dans les publications WordPress individuelles

Pour masquer facilement les images en avant des publications WordPress, nous vous recommandons d’utiliser l’extension Conditionally Display Featured Image. Il vous donne l’option de masquer les images mises en avant individuellement sur les publications WordPress.

La première chose à faire est d’installer et d’activer l’extension. Pour plus de détails, consultez notre guide étape par étape sur l’installation d’une extension WordPress.

Après cela, l’extension fonctionne dès sa sortie de la boîte, et il n’y a aucun réglage de l’extension à définir.

Il vous suffit de vous rendre dans la rubrique « Messages » « Tous les messages » et de cliquer sur la publication que vous souhaitez ouvrir.

Go to WordPress post dashboard and open post

Ensuite, dans l’écran de modification de l’article, vous verrez une case indiquant « Afficher l’image avant dans les listes d’articles uniquement, masquer dans les vues singulières » directement sous l’image avant.

Pour masquer l’image en avant, il suffit de cocher cette case, puis de cliquer sur le bouton « Mettre à jour » pour enregistrer vos modifications.

Check box to hide post featured image

Après cela, vous pouvez consulter votre publication et vous remarquerez que l’image mise en avant est masquée. Même si une mise en fonctionnalité est assignée à la publication, elle ne s’affichera pas.

Cette extension ne supprime pas la miniature de publication. Il la masque uniquement sur l’interface publique de votre site WordPress. Si vous souhaitez à nouveau afficher l’image mise en avant, il vous suffit de modifier la publication et de décocher la case « masquer l’image mise en avant ».

Si vous utilisez des types de publication personnalisés avec support de l’image avant, l’extension vous permettra également de masquer ces mises en avant.

Guides d’experts sur les images mises en avant dans WordPress

Maintenant que vous savez comment masquer les images mises en avant sur des publications similaires, vous pouvez consulter d’autres articles liés aux images mises en avant dans WordPress.

Nous espérons que cet article vous a aidé à apprendre comment masquer les images mises en avant sur des publications individuelles sur WordPress. Vous pouvez également consulter notre guide sur la création d’une newsletter par e-mail et nos choix d’experts du meilleur logiciel de chatbot IA pour votre site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Divulgation : Notre contenu est soutenu par les lecteurs. Cela signifie que si vous cliquez sur certains de nos liens, nous pouvons gagner une commission. Consultez comment WPBeginner est financé, pourquoi cela compte et comment vous pouvez nous soutenir. Voici notre processus éditorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

L'ultime WordPress Toolkit

Accédez GRATUITEMENT à notre boîte à outils - une collection de produits et de ressources liés à WordPress que tous les professionnels devraient avoir !

Reader Interactions

81 commentairesLaisser une réponse

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Abinash Panda says

    Thank you for the post, I could fix this issue on desktop site but not on mobile view. Do you have any idea ?

    • WPBeginner Support says

      In that case, please visit the plugin’s page and check their FAQ, they have a few recommendations to solve that issue :)

      Administrateur

  3. Uche Nwonye says

    After hiding the featured image in the single post view, will it be displayed when I share the post on social media (like WhatsApp)?

    • WPBeginner Support says

      It would depend on what your site’s markup is, if you have an SEO plugin then those allow you to set the same or different images to appear for social media.

      Administrateur

    • WPBeginner Support says

      If you reach out to your theme’s support they would be able to help with that kind of customization.

      Administrateur

  4. Raja ajmal says

    When I set a feature images for a post, it automatically comes at the top of a post, which I do not want to be there.
    How can I remove that image in the top of a post?

    • WPBeginner Support says

      You would want to reach out to your theme’s support as each theme has a different method for displaying that.

      Administrateur

    • WPBeginner Support says

      Thank you for letting us know, we will be sure to keep an eye out for alternative plugin options.

      Administrateur

  5. Chelsea Plummer says

    I just downloaded this, but unfortunately the plugin is not working. Do you have any other suggestions or plugins to use? Thank you so much.

    • WPBeginner Support says

      Unless I hear otherwise, not at the moment. We will be sure to keep an eye out for alternatives.

      Administrateur

    • WPBeginner Support says

      We will certainly take a look and look for a replacement plugin if it continues to not work properly

      Administrateur

  6. Daniels says

    I ‘ve added a featured image only for share in facebook, I don’t want it displayed at top of the post. So I am using this plugin.
    It works okay if the user selects a post from Recent Posts but it doesn’t if the user clicks on one of the Archives dates or on of one of the Categories

    • WPBeginner Support says

      Thanks for letting us know, you may want to reach out to the plugin’s author to let them know about that issue.

      Administrateur

      • Daniels says

        The plugin’s webpage is blank. I did contact the author by email but he didn’t reply yet.
        Do you know another way to always hide the featured image?
        I’ve read Yoast does the task in a different way (no need to add a featured photo, just set which one to use for facebook posts) but it is a paid feature.
        I use WPSSO plugins that let me preview a facebook post using featured image.
        Thank you

        • WPBeginner Support says

          You may want to reach out to your theme’s support and they may have a recommended method to hide or remove the featured image.

  7. Jay says

    Hello,

    Combed through all the responses. Still needing help.

    For Ali who recommended:
    Enter this code into your theme’s custom CSS area:
    .single.postid-99 .post-img {display: none;}
    Replace “99” with the post id for which you want to hide the featured image.

    and Jim who recommended:
    Put in the theme options / general/ css
    .single-post .et_post_meta_wrapper > img{
    display:none;
    }

    ____________________________________________
    I have the Herschel theme if that sheds some light.
    I have tried both in the custom css box and neither solution have worked.
    Have also tried hiding image from ALL posts under the settings.

    Do the above solutions need to go in a specific area of the css box?
    Otherwise, this plugin is not working for me.

    Thanks!

    • WPBeginner Support says

      Sadly, the plugin may not be working for your theme, you could try reaching out to the plugin’s support to see if there is an issue with the theme you are using.

      Administrateur

  8. Nate says

    I like that plugin you showed in the youtube video, it’s really simple.

    Although, It’s not really friendly with Elementor. When I add a photo gallary in, in replace of my featured image on my post, the plugin will not only hide the featured image, but that photo gallary as well. Anyone know a fix or a different plugin?

    • Iris says

      Yes, because your « real » content is the first thing Google reads at your page (after title etc).

      It won’t do much, but it won’t hurt.

  9. Jimmie says

    I am using the “Hide Featured Image” plug-in in an effort get rid of the big empty box in the middle of my product pages. It works. However, when I do this, it negatively affects the images in the product gallery below. To see what I mean, please refer to this page which has the featured image hidden:

    When the plug-in is set to “off” on the page, the product photos are coordinated properly with the color option chosen & that part works like a charm.

    How can I get them to both work together?
    THANKS

    • WPBeginner Support says

      Hi Jimmie,

      Try disabling all other plugins to see if this solves the issue. If it does, then activate them one by one until this issue occurs again. This will help you find out if another plugin is causing the conflict.

      Administrateur

  10. Tony says

    Hi,

    I was not set any featured image in my post but one image from post shows in homepage how can i remove it. Kindly help me.

  11. Sheree says

    Is there any way to stop the featured image from showing up on the home page as well?? This plug-in works well to hide it in posts, but my home page (which is just a feed of blog posts) is now a mess of featured images.

    Basically, I just want the feature image attached to the post for RSS feed newsletters and social sharing, but I don’t want it to appear in the article OR on my homepage. I’ve been tearing my hair out on this for hours… :(

  12. Elisabeth says

    Sorry, I’m trying to figure out how to unhide a featured image in a single post, tried to unhide it with this, and it didn’t work.

  13. Arden Mendoza says

    I been trying to remove my site’s portfolio suffice feature image for days now using style css but no luck. When I came across this article I follow the steps and downloaded the plugin and it WORKED!!!

    Thanks

    here is my sites portfolion

    all the featured images in portfolio has been hidden

    Thanks again

  14. Prasad Maitra says

    It’s not working with the Ribbon lite theme. I have installed it but seems still those No preview image box showing beside the posts.

  15. John says

    How do I prevent my featured image from showing up inside my post but instead just as a featured image. Usually when I set a featured image, it shows up even inside the post itself and I don’t like that…. what do I do?

  16. Chantal says

    What would the code be if its a portfolio post? The above custom code is not working for me and I think its because they are portfolio posts. Thanks

  17. Vanbel says

    hai, i tried this plugin but it doesnt work, it shows « Yes or no » option on my post. i tried both, but none of them work. Please help me! heres my site:

  18. Imaqination says

    Hello, I have tried to download the plugin and hide the featured image. However, the buttons shows, « Yes or No », and Either of them don’t hide the featured image.

  19. Hussain says

    When I found this, I expected to read something about SEO too. The question is what SEO effect does hiding featured image have, especially if it’s hidden by css on a post type because you don’t want it to appear on that post type only?

  20. Lisa Scott says

    You are a lifesaver. Thanks so much. This worked beautifully for me. So glad to have it all straightened out.

  21. Chris R says

    Does this work such that on the HOME page, the featured image would display, but for the post itself, you could hide it? (So, for example, you might have a static thumb in the home page loop, but want to show a slider in the post itself).

    • Josh M says

      I’m trying to figure out how to do the same thing with no luck.

      I would like the featured images to be displayed as thumbnails on the homepage. But for the post pages I want to hide the featured image from a certain post, but have the featured on other posts still display on the posts page. I would like to do this without adding a plugin.

      Let me know if you were able to solve this.

        • Ali says

          I found a solution for this.

          Enter this code into your theme’s custom CSS area:

          .single.postid-99 .post-img {display: none;}

          Replace « 99 » with the post id for which you want to hide the featured image.

  22. Bamidele says

    Thanks for the post, it’s help , have been looking for a day to read this on WPbeginner. I tried it and it works on my site ,

  23. Muzamil says

    Thanks for this post
    I just visited this post from my mobile and want to know how you get full desktop view of this site on mobile. When I checked my website it automatically shows a different view on mobile and desktop, is it my theme or something else

Laisser une réponse

Merci d'avoir choisi de laisser un commentaire. Veuillez garder à l'esprit que tous les commentaires sont modérés selon notre politique de commentaires, et votre adresse e-mail ne sera PAS publiée. Veuillez NE PAS utiliser de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.