How to fix missing og title on Adobe Commerce (Magento)

Add an og:title meta tag to every page so your store's title appears correctly when shared on social media platforms like Facebook, LinkedIn, and Pinterest.

Steps for Adobe Commerce (Magento)

  1. In the Admin panel, go to Content → Configuration → select your store view → click 'Edit'.
  2. Under 'Other Settings', expand the 'HTML Head' section. Here you can add default meta tags, but for og:title specifically you need to edit your theme layout.
  3. Navigate to your custom theme folder at app/design/frontend/[Vendor]/[Theme]/Magento_Theme/layout/ and open or create default_head_blocks.xml.
  4. Add an og:title tag using layout XML, or edit your theme's default.xml to include it in the <head> block.
  5. A more maintainable approach: edit app/design/frontend/[Vendor]/[Theme]/Magento_Theme/templates/html/head/additional.phtml to output: <meta property="og:title" content="<?= $block->escapeHtml($this->getLayout()->getBlock('page.main.title')->getPageTitle()) ?>" />
  6. For product pages specifically, the og:title should use the product name: in catalog/product/view.phtml or via a plugin/override, output the product name in the og:title tag.
  7. Flush the Magento cache (System → Cache Management → Flush Cache) and verify using Facebook Sharing Debugger.
Official Adobe Commerce (Magento) documentation ↗

What is missing og title?

The og:title tag is a small piece of HTML code — part of the Open Graph protocol — that tells social networks and messaging apps what title to display when someone shares a link to your store. Without it, platforms like Facebook, LinkedIn, Pinterest, and WhatsApp either guess a title (often pulling something ugly or irrelevant) or show no title at all. It lives in the <head> section of your page and looks like: <meta property="og:title" content="Your Page Title Here" />. It does not affect your visible page content — it only controls how your link previews appear when shared.

Every time a customer, blogger, or influencer shares a link to your store or product page, the og:title is the headline of that shared post — it's what makes someone stop scrolling and click. Missing or broken og:title tags mean your shared links look unfinished, unprofessional, or just plain wrong, which directly reduces click-through rates from social media. For ecommerce stores, social sharing is a significant free-traffic channel: a product shared on Facebook or Pinterest with a compelling, accurate title can drive meaningful revenue. Additionally, some search tools and third-party indexers use Open Graph data as a secondary signal for content relevance, so having it set correctly supports a consistent, trustworthy brand presence across the web.

See the complete Missing og title guide for every platform and the full background.

Not sure if your Adobe Commerce (Magento) store has this?

Run a free SEOLZ scan — we’ll find missing og title and every other issue across your whole site.

Scan my site free

Fix missing og title on another platform