WordPress.org

Ready to get started?Download WordPress

Forums

Add facebook image metatag only for homepage (3 posts)

  1. Maraki
    Member
    Posted 2 years ago #

    Hello,

    I would like to add a metatag image only for my homepage (so that everything else doesn't get messed up) so that when people share the website on facebook, my chosen thumbnail will be displayed.

    http://www.eupal.eu

    Any ideas?

    many thanks
    Andy

  2. Maraki
    Member
    Posted 2 years ago #

    From the research I have done, i think i need a function that adds this code only for the header of the home page...

    <meta property="og:image" content="http://example.com/image.jpg"/>

  3. comicref
    Member
    Posted 1 year ago #

    I would be very interested in adding a function like this as well. Anyone more adept at coding have a solution?

Topic Closed

This topic has been closed to new replies.

About this Topic