When someone shares a link to your website on Facebook, LinkedIn, X, or messaging apps, the platform displays a preview card with a title, description, and image. That image is called the Open Graph image, often shortened to OG image. A compelling OG image can dramatically increase clicks and engagement, while a missing or poorly cropped image can make your content look unprofessional. If you use WordPress with the Yoast SEO plugin, you have full control over these images. In this guide, we will explain how to change OG image in Yoast SEO, set defaults, troubleshoot common problems, and follow best practices.
How AAMAX.CO Optimizes Social Sharing and SEO
Social previews, metadata, and structured data work together to shape how your content appears across the web. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. They configure WordPress SEO plugins, design on-brand social images, and resolve metadata conflicts that prevent correct previews from appearing. Their search engine optimization services ensure your content looks polished and clickable everywhere it is shared, supporting both search visibility and social engagement.
What Is an Open Graph Image?
Open Graph is a protocol originally created by Facebook that allows web pages to specify how they should appear when shared. It uses meta tags in the page's HTML, such as og:title, og:description, and og:image. Most major social platforms and messaging apps read these tags. If no OG image is specified, platforms may select a random image from the page or display no image at all, which often results in poor-looking previews.
How to Change the OG Image for a Single Post or Page
Yoast SEO makes it easy to set a custom OG image for individual content. Start by opening the post or page you want to edit in the WordPress editor. Scroll down to the Yoast SEO meta box below the content, or open the Yoast sidebar panel in the block editor. Look for the Social tab, sometimes labeled Social appearance. In the Facebook or social section, find the image option and click to select an image. Upload a new image or choose one from your media library. You can also customize the social title and description in this section. Finally, update or publish the post to save your changes.
In recent versions of Yoast SEO, the social image settings apply to Facebook and other platforms that use Open Graph, while a separate section may be available for X, formerly Twitter. If you do not set a separate X image, Yoast typically falls back to the Open Graph image.
How Yoast Chooses an OG Image by Default
If you do not set a custom social image, Yoast follows a fallback order. It first looks for an image specified in the social settings. If none is found, it uses the featured image of the post. If there is no featured image, it may use an image found in the content. If none of these are available, it uses the site-wide default image you have set in the plugin settings. Understanding this hierarchy helps you control how your content appears.
How to Set a Site-Wide Default OG Image
A default image ensures every page has a professional preview, even if you forget to set a custom one. In the WordPress dashboard, go to Yoast SEO and then Settings. Navigate to the Site basics or Site representation section, depending on your version, where you can upload a site image. Some versions also offer default social images for specific content types, such as posts, pages, or products, within the content type settings. Choose a branded image that represents your business well, such as a logo on a branded background.
Recommended OG Image Size
For best results, use an image that is 1200 pixels wide by 630 pixels tall, which is an aspect ratio of roughly 1.91 to 1. This size displays well across most platforms. Keep the file size reasonable for fast loading, and place important visual elements near the center, since some platforms crop edges. Use JPG or PNG formats, and avoid placing small text near the edges of the image.
Troubleshooting: Why Is the Old Image Still Showing?
One of the most common frustrations is updating the OG image and still seeing the old one when sharing. This usually happens because social platforms cache link previews. To fix it, use platform tools to refresh the cache. Facebook offers a Sharing Debugger where you can enter your URL and click Scrape Again. LinkedIn provides a Post Inspector tool that refreshes preview data.
Caching plugins on your own website can also cause problems. Clear your WordPress cache and any CDN cache after updating the image. Additionally, check whether another plugin or your theme is outputting conflicting Open Graph tags. Multiple sets of OG tags can confuse platforms, so it is best to let one plugin handle them.
Best Practices for OG Images
Create images specifically designed for social sharing rather than relying on random content images. Keep branding consistent with your logo, colors, and style. Use high-contrast visuals that stand out in busy social feeds. Ensure the image reflects the content accurately to build trust and avoid misleading users. Test your previews before sharing important content. Strong social visuals support your wider digital marketing efforts by increasing click-through rates and brand recognition.
Does the OG Image Affect SEO?
The OG image is not a direct ranking factor for search engines. However, it influences social engagement, click-through rates from shared links, and brand perception. More clicks and shares can increase traffic, visibility, and the chances of earning backlinks, all of which indirectly support SEO.
Final Thoughts
Changing the OG image in Yoast SEO is simple once you know where to look. Use the Social tab in the Yoast panel to set custom images for individual posts, configure a site-wide default image in the plugin settings, and use the recommended 1200 by 630 pixel size. If previews do not update, refresh social platform caches and clear your website cache. With well-designed OG images, your content will look professional and attract more clicks wherever it is shared.
Want to publish a guest post on aamconsultants.org?
Place an order for a guest post or link insertion today.

