Hide featured image

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #28537
    Bart Daems
    Participant

    Hello

    When I share http://personalcoach4u.be to Linkedin it shows an image which is used in the website’s footer.

    I setup the open graph settings correctly in Yoast plugin and for example on Facebook it shows the correct picture when I share the website.
    I also waited more than 1 week for linkedIn to refresh it’s cache, but it still shows the wrong pic.

    Therefore I tried to setop a featured image for the homepage, hoping linkedIn would pic this one up.
    When I add the image, it’s all stretched out in the header of the homepage.

    Is there a way I can add a feautured image to the hompage but hide it with css, so LinkedIn would pick up the right pic?

    Thanks in advance,

    KR,
    Bart

    #28557
    Veena
    Moderator

    Yes you can hide the image using custom CSS but not sure linkedin pick this pic up. You can give a try.

    Pls go through these threads and see if it helps –

    https://theme.co/apex/forums/topic/linkedin-image-pull/

    https://themegrill.com/support-forum/topic/linkedin-not-sharing-featured-image/

    If the above solutions(mentioned in the link) doesn’t work . You can check this with yoast seo plugin guys.

    #28566
    Bart Daems
    Participant

    This didn’t make any difference since the treads were provided for another theme…
    Can you please provide me css for hiding featured image on homepage only?

    Thank you,

    Regards,
    Bart

    #28577
    Veena
    Moderator

    Which image you need to hide?

    #28581
    Bart Daems
    Participant

    Hello

    I want to set this image as featured image on my homepage and hide it with CSS:
    http://personalcoach4u.be/wp-content/uploads/2017/11/facebook-delen.png

    I hope that LinkedIn then picks this one up since now it’s picking up a wrong image of the footer.
    Setup up OG in Yoast or waiting more than a week for LinkedIn to empty it’s cache did not make any solution.

    Can you provide me the right CSS code to hide that specific image on the homepage please?

    Thanks,
    Regards,

    Bart

    #28595
    Veena
    Moderator

    Pls add the image in your home page first then only i ll able to provide required custom CSS.
    And also pls try to add a css id for that particular image so that it will be easy for us to target the image.

    #28601
    Bart Daems
    Participant

    This I cannot do.
    If I put a featured image in that homepage it’s all over the screen and totally stretched out.

    I don’t want this to be visible for the clients until you guys have time to come over.

    #28604
    Veena
    Moderator

    Then you can give us a temp login(as a private reply) to your site and specify where exactly you want to add the image so that we can login and add the same and ll add custom CSS in themeoptions.

    #28606
    Bart Daems
    Participant
    This reply has been marked as private.
    #28609
    Veena
    Moderator

    Pls use the below custom CSS in themeoptions –

    .home img.featured {
        display: none;
    }
    
    #28611
    Bart Daems
    Participant

    Ok this works. thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Hide featured image’ is closed to new replies.