URGENT PLS: Post without featured image

  • Posted in : Read WP
  • azizitouk
    Participant

    In WP Read, when I select a featured image for a post, the same image appears automatically on the top of the post in the single post. Is there anyway to make the featured image show only on the front page, but not on the top of the post?

    http://nebesht.com

    Thanks

    Aziz

    Mehmet S.
    Keymaster

    Hi, use this in your custom css field:

    body.single-post .featured-image { display: none; }
    

    Thanks

    azizitouk
    Participant

    Thanks this is great. But is there anyway to apply this for some posts and not all of them? I have some posts which include a video for example, and having both a photo and a video on the same page isn’t that good.

    Mehmet S.
    Keymaster

    The number below is a post id. You can find a post id by clicking the “Get Shortlink” button in the editing screen.

    body.postid-1411 .featured-image { display: none; }
    
    azizitouk
    Participant

    But am I supposed to enter the code in the custom CCS field or within the post itself as [code]

    azizitouk
    Participant

    HELLO Urgent Help Please.

    I had been told by my host company that my domain had been under attack. After few days of difficulty, we fixed the problem and I checked the control panel through the files on my website. I noticed that in WP Read Theme folder there are like 100s of php files with weird names that contain codes about sending spam emails. I carefully selected all of them and remove them and now my website is messed up.

    Could you please contact me in private so I could give you my password and username?

    thanks for treating this urgently.

    azizitouk
    Participant

    OK, I installed the WP Read again and apparently I could fix it. Now back to the main question:

    Can I use a similar code to exclude a certain cetengroy from displaying the featured image in the post? the category no I want to exclude is 108. SO would something like work work?

    body.cat_id-108 .featured-image { display: none; }

    Mehmet S.
    Keymaster

    Use category slug:

    body.category-web-design .featured-image { display: none; }
    

    Note: To learn e category slug, go to WP Admin > Posts > Categories, and click the “Quick Edit” link of a category that you will see it when you hover.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register