kowal.info

Meta OG

Composer kowal/module-metaog · Version 1.0.27

Product page

Meta OG — kowal.co

Description

Adds Open Graph tags for the title, description and image used when a storefront URL is shared.

For whom

For catalog and CMS editors preparing link previews for products, categories and information pages.

Features

  • Metadata selected by page type.
  • Product-specific share titles, descriptions and artwork.
  • Global settings for site name and default OG values.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-metaog
bin/magento module:enable Kowal_MetaOg
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Open Kowal → Meta OG → Global Settings and set the site name and defaults.
  2. On a test product, enter an OG title and description that differ from its name and short description. Add an OG image.
  3. Save the product and refresh the page cache.

Requirements / notes

The package requires kowal/base. Tags are rendered in the page HTML. When a product has no separate OG image, the extension uses its product image.

FAQ

Why does a product preview use its catalog name?

The module uses the product name if the OG title is empty. An empty OG description similarly falls back to the product’s short description.

Verify the installation

bin/magento module:status Kowal_MetaOg

Open the product page source and find og:title, og:description and og:image. Compare their values with the saved fields and open the image URL to verify the artwork.