Skip to content

Add OpenGraph Tags and default image to header #183

@dshaykewich

Description

@dshaykewich

Description

When events are currently shared to social media, no image is displayed in the preview.

image001

Could you please add open graph tags to the head that either lists the 'featured image' when set or a default image for the site, when no featured image is set?

For example:

<meta property="og:title" content="Article Title"/> <meta property="og:description" content="Article Description (One or Two sentences)"/> <meta property="og:type" content="article"/> <meta property="og:url" content="http://example.com/link/to/article"/> <meta property="og:site_name" content="Site Name"/> <meta property="og:image" content="http://example.com/image/src.jpg"/>

I found this tutorial on adding the tags by modifying the functions.php page with some calls to get post info:
https://www.elegantthemes.com/blog/tips-tricks/how-to-add-open-graph-tags-to-wordpress

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions