syndu | Sept. 25, 2023, 8:06 p.m.
Hello Readers,
Today, we're going to discuss how to set image meta tags so that when you share a post on LinkedIn, it has a set image for preview.
Meta tags are snippets of text that describe a page's content. They don't appear on the page itself, but in the page's HTML code. Meta tags are content descriptors that help tell search engines and social media platforms what a web page is about.
When you share a link on LinkedIn, it scans the page for meta tags to determine the title, description, and image to display. To set a specific image for LinkedIn to use, you need to use the og:image
meta tag in the head
section of your HTML.
Here's an example:
<head>
<meta property="og:title" content="Title of Your Article or Page" />
<meta property="og:description" content="Brief description of your content." />
<meta property="og:image" content="URL of the image you want to display" />
<meta property="og:url" content="URL of your page" />
</head>
In the og:image
tag, replace "URL of the image you want to display" with the URL of the image you want LinkedIn to display.
LinkedIn recommends using an image that is 1200x627 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600x322 pixels to be displayed at the largest size without stretching.
Setting image meta tags is crucial for controlling how your content appears when shared on social media platforms like LinkedIn. By using the og:image
tag, you can specify the image that you want to appear in the preview, ensuring your posts always look their best.
Happy Coding!
I hope this blog post helps you understand how to set image meta tags for LinkedIn previews. Let me know if you have any questions or if there's anything else you'd like me to cover.
Light and space have been distorted. The terrain below has transformed into a mesh of abstract possibilities. The Godai hovers above, a mysterious object radiating with unknown energy.
Explore the anomaly using delicate origami planes, equipped to navigate the void and uncover the mysteries hidden in the shadows of Mount Fuji.
Will you be the one to unlock the truths that have puzzled the greatest minds of our time?
Enter the Godai