jorisnoo/craft-seo-preview

SEO preview targets for Craft CMS elements

Maintainers

Package info

github.com/jorisnoo/craft-seo-preview

Language:Twig

Type:craft-plugin

pkg:composer/jorisnoo/craft-seo-preview

Statistics

Installs: 86

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

dev-main 2026-03-26 04:38 UTC

This package is auto-updated.

Last update: 2026-04-02 16:46:51 UTC


README

A Craft CMS plugin that adds an SEO preview target to element live previews. See how your entries will look in Google search results while editing.

Requirements

  • PHP 8.2+
  • Craft CMS 5.0+

Installation

composer require jorisnoo/craft-seo-preview

Then install the plugin from the Craft control panel or by running:

php craft plugin/install seo-preview

How it works

The plugin adds an "SEO Preview" tab to the live preview of any element that has a URL. It renders a Google-style search result preview using the element's meta tags (title, description, og:image, etc.), so you can see how the page will appear in search results before publishing.

The preview reads the actual meta tags from your templates, so it works with whatever SEO setup you already have (SEOmatic, custom meta tags, etc.).

Template requirements

Your site templates need to include a partial at _helpers/seo.twig that outputs the relevant meta tags for the given entry. The plugin passes the entry to this partial and uses the rendered meta tags to build the preview.

License

MIT