• Resolved kenai7

    (@kenai7)


    Hi there,

    I’m working with a plugin which uses “posts” to display content (car sales) on my website.
    The plugin uses the featured image function to display a list of cars for sale, as well as the “main photo” of the car selling.

    I’m running on a major issue in the single post now, because the theme displays the featured image in the single post, as well as the plugin for car sales. On other parts of my website, I DO use the featured image function, to display the featured image of a certain post. Which means, i can’t just use CSS to get rid of the featured image.

    So basically my question is, how do I remove the featured image of CERTAIN posts? I allready tried the plugin “Hide Featured Image”, but that’s not working with me.

    I hope you’ll act fast.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hello @kenai7,

    You can hide feature image using custom css

    First you have to get id of the post

    Now add below css rule

    .post-240 .post_format_con{
        display:none;
    }
    .post-240 .feature_inner{
        display:none;
    }

    and change its id in give css

    Like if your post id is 654 than your css is

    .post-654 .post_format_con{
        display:none;
    }
    .post-654 .feature_inner{
        display:none;
    }

    If you have any query in this please let us know

    Thank You

    Thread Starter kenai7

    (@kenai7)

    Hey!

    Thanks for your answer.
    Yeah i figured that out, but new posts are made very frequently, sometimes even daily, which means I have to adjust the CSS every day when I choose to get rid of them with CSS.

    Edit:
    Maybe it’s possible to displaythe featured image in some post ID’s using CSS or PHP in single.php?
    Something like, “if post-id=425” (e.g.). Sorry i’m not that well known with PHP.

    Isn’t there another way?

    Thanks.

    • This reply was modified 9 years, 4 months ago by kenai7.
    • This reply was modified 9 years, 4 months ago by kenai7.
    Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hi,

    Its a part of code customization.

    So you need to hire a developer.

    Or check out our services.

    Thank You

    Thread Starter kenai7

    (@kenai7)

    Already solved the problem!

    I just changed the class “feature_inner” to “feature_thumb” in home-blog.php, so the thumbs are visible.

    Thanks tho 🙂

    Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hi,

    We appreciate your work.

    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove Featured image from CERTAIN Posts’ is closed to new replies.