Okay
  Public Ticket #215044
Hiding the featured image
Closed

Comments

  •  1
    Niklas started the conversation

    Hi! In portfolio items, I can hide the featured image. I would love to be able to do that in blog posts, too! Currently, I can't. I've been hiding it with a css hack.

    The reason is, that I'm using the featured image as background for the header so I don't want it to be seen under that header again.

    As I said: In portfolio items, I can change that, but not in blog items!

  •  8,992
    Tahir replied

    Hey Niklas!

    Yes we have that in the wishlist and will likely be available in future updates. 

    Thank you for your feedback. 

    -T


    ThemeNectar Support Team 

  •  1
    Niklas replied

    Thanks! That's enough for me :)

  • [deleted] replied

    I second this request. It would be great to show an image in the blog preview area. Currently cannot do that unless using a featured image and when you do it shows up in the blog post under the header which is the same image. If it could either use the header as the preview or hide the featured image in the post that would be great!

  •  8,992
    Tahir replied

    Hey Donald!

    Thanks for the feedback. Ill flag the ticket so the developer can note your request. 

    Cheers


    ThemeNectar Support Team 

  • Gate replied

    This is a "must have" feature for me as well. I cannot launch the new version of my site without this.

  •  8,992
    Tahir replied

    Hey Gate!

    If you need to hide it you can use this custom css, Add this into the Custom CSS box located in your Salient Options panel :

    .post-featured-img {
    	display: none;
    }
    

    Cheers


    ThemeNectar Support Team 

  • Gate replied

    Unfortunately, I want the featured images on my home page (blog), but not on single posts. I was able to remove the featured image on single posts by adding this in my header.php file:

    <?php if(is_single()) { ?>
    <style type="text/css" media="screen">
    	.post-featured-img {
    	display: none;
    }
    </style>
    <?php } ?>

    It "works" visually, so that is one good thing, but it add and extra css in the page and goes against what I am trying to achieve, which is to avoid loading a huge image for nothing, especially for those who didn't come through from the main page.

    Is there a way, perhaps a new function, which would allow me to set the featured image size?

    That way the featured images that load on the main page would load much faster and using display:none on a smaller image wouldn't be that much of a problem.

    Thanks for the time.

  •  1,089
    ThemeNectar replied

    Hey everyone!

    The correct & easiest way to hide a featured image on the single post page only is to add this into the Custom CSS box located in your Salient Options panel: 

     
    .single-post .post-featured-img {
    	display: none;
    }
    

    Gate Keeper - if you don't want to show the featured image on the main blog page at all and feel that css is not appropriate you'll need to remove the image function from the single.php file

    Cheers :)


  •  1
    Niklas replied

    But will you be adding a switch to the options like there is on portfolio items? Would prefer that! :)

  •  8,992
    Tahir replied

    Hey Niklas!

    Yes that is added to the wishlist for future updates :) .

    Cheers


    ThemeNectar Support Team 

  •  1
    Niklas replied

    Great! :)

  • Lubellski replied

    I'd love a solution here too. If I don't set a featured image on a single blog post, then I am left with a large gap where the theme is expecting a header image. I don't want that either. I just want the blog post to start with my text. Or, at the most, a heading where the post title, author, and date are shown. Is this possible?

    Thanks!

  •  8,992
    Tahir replied

    @lubellski, Could you provide a page url where we can see the gap ?. 

    Thanks


    ThemeNectar Support Team 

  • Lubellski replied

    Sure thing Tahir, here you go.

    http://lubelltesting.xyz/treatment-options/therapeutic-laser-class-4/

    I'd love not to HAVE to put an image here.

    Thanks

  •  8,992
    Tahir replied

    Hey Again,

    Try adjusting the Header Style in here : http://prntscr.com/r2oaxg . 

    Best


    ThemeNectar Support Team 

  • Lubellski replied

    Thank you Tahir!