Skip to content
Available for new work
Pages in Blog

GuidePremium

SEO output of CoullWorks Blog for Magento 2

What every blog page prints in its head for search engines (canonical, title and description, robots, Open Graph and Twitter, hreflang, rel prev and next, JSON-LD), where each value comes from, and which switch turns each off.

Updated 17 November 2026Back to the package pageBuy

Every blog page prints a set of tags in its head, with no setup. This page shows each one, where its value comes from and how to change it. The tags and structured data are not screens, so the screenshots on this page are rendered from the real page head: the tags were read from the live page's source and set out as text. They are not browser screenshots. The examples come from the demo post "How to pitch a tent in the wind" and a demo post with a French translation.

To see the same tags on your own store, open a post, choose View page source in your browser and search for canonical, og:title or application/ld+json.

The switches#

Under Stores, Configuration, CoullWorks, Blog, SEO Output there is a Yes or No switch for each output, all Yes by default: Output Canonical Link, Output hreflang Alternates, Output rel prev/next On Paginated Lists, Output Open Graph And Twitter Cards, and one for each structured data type (BlogPosting, BreadcrumbList, CollectionPage, FAQPage, VideoObject and Person). Turning one off removes that output and nothing else. Use them when another SEO module already prints the same tag, so a page does not carry two. The switches are listed field by field on Configure.

Titles, descriptions and robots do not have a switch. They go through Magento's own page title, description and robots, so there is always exactly one of each, and another module can override them in the usual way.

If a known SEO module is enabled (MageWorx SeoBase, SeoMarkup or SeoBreadcrumbs, Amasty SeoToolKit or SeoRichData, Mirasvit Seo or SeoMarkup) while a matching output is still on, the admin shows one system message naming it. Nothing is switched off for you. Set Show Notice About Other SEO Modules to No to hide the message.

Each page prints one canonical address, the page's own address. Tracking parameters are removed from it, using Tracking Parameters Removed From Canonical Addresses under SEO (default utm_*, gclid, fbclid, msclkid, mc_cid, mc_eid, ref; a * matches any run of characters). ?p=1 is dropped, so the first page of a list is the plain address. Other pages of a list keep their own ?p= value.

The canonical tag in the head of the post /blog/tent-pitch-checklist

Rendered from the page head: <link rel="canonical" href="https://.../blog/tent-pitch-checklist">.

Switch: Output Canonical Link.

Title and description#

The title and description come from the post's, category's, tag's or author's own Meta Title and Meta Description fields in the SEO section of its form. When a field is empty the page falls back to the templates under SEO:

  • Title Template, default {{title}} | {{store}}. Placeholders: {{title}} and {{store}}. The result is cut to 60 characters at a word.
  • Description Template, default {{excerpt}}. Placeholders: {{excerpt}}, {{title}} and {{store}}. The result is cut to 155 characters at a word.

The title and meta description tags of the demo post

Rendered from the page head: the title "How to pitch a tent in the wind | Camp & Ridge" (the post title, a bar, then the store name from the template) and a meta description taken from the post's excerpt, "The checks we make before a tent gets a night above the treeline."

No meta keywords are printed, because search engines ignore them.

Meta robots#

The value is the page's own Meta Robots setting, or Default Meta Robots under SEO (default INDEX,FOLLOW) when that is empty. On top of that:

  • The blog search results page is NOINDEX,FOLLOW.
  • A tag page with fewer visible posts than Noindex Tag Pages With Fewer Posts Than (default 3) is NOINDEX,FOLLOW and left out of the sitemap. 0 turns this off.
  • A post whose featured image is at least 1200 pixels wide gets max-image-preview:large added, which lets search engines show a large preview.
  • A draft preview is NOINDEX,NOFOLLOW.
  • When another source has already set a value, the stricter of the two wins.

The meta robots tag of the demo post

Rendered from the page head: <meta name="robots" content="INDEX,FOLLOW,max-image-preview:large">. The demo post's image is 1400 pixels wide.

Open Graph and Twitter cards#

The social tags use the post's Social Share Image, and fall back to the featured image when it is empty. They carry the title, description, address, site name, locale, image (with its width, height and alt text) and, for posts, the type article. The Twitter card type is summary_large_image.

The Open Graph and Twitter tags of the demo post

Rendered from the page head: the twitter:card, twitter:title, twitter:description, twitter:image and twitter:image:alt tags, then og:site_name, og:locale (en_GB), og:type (article), og:title, og:description, og:url, og:image, og:image:width (1400), og:image:height (933) and og:image:alt. Titles show &amp; because the page source escapes an ampersand.

Switch: Output Open Graph And Twitter Cards.

hreflang alternates#

When a post has translations in other store views, each translation lists all the others, and one is marked as the default for visitors whose language is not listed. The links are printed only between versions that are visible in their own store views, so the set is always reciprocal. Store Used For x-default under SEO is the store view id whose version answers x-default. When it is empty, the default store view is used.

The hreflang tags of a post that has a French translation

Rendered from the page head of /blog/first-night-out-what-to-pack on the English store view, which a second (French) store view translates: the canonical, then alternate links for en-GB, fr-FR (pointing at the French store view's own address, .../blog/bonne-nuit-en-tente) and x-default.

A post joins a translation group through its translation_group_id (a row in coullworks_blog_translation_group, see Database tables). The admin post form has no field for it in this version, so the id is set through the post's REST or PHP API data, and posts that share an id are treated as translations of one another. A post with no translation group prints no hreflang tags. Copying a post with the admin's duplicate action clears the id, so a copy is not tied to the original by accident.

Switch: Output hreflang Alternates.

rel prev/next#

Paged lists print links to the previous and next page, and a canonical for the page itself.

The canonical and rel prev and next tags in the head of page 2 of the blog home

Rendered from the page head of /blog?p=2 with 3 posts per page: the canonical .../blog?p=2, rel="prev" pointing at .../blog and rel="next" pointing at .../blog?p=3.

Switch: Output rel prev/next On Paginated Lists. The visible pager that goes with it is on Blog pages.

JSON-LD#

Structured data is printed as JSON-LD, one document for each type, and only describes what is on the page. Each node has a fixed @id made from the page address plus #article, #breadcrumb, #collection, #faq, #video-1 (numbered for each video) or #person, so a crawler can merge a duplicate from another module and not count two.

TypePrinted onWhat it holds
BlogPostingA postHeadline, description, images with real sizes, dates, author, publisher, reading time, word count, section, keywords, language, the related products as mentions, and for an AI-assisted post the sources it cited
BreadcrumbListEvery blog pageThe visible breadcrumb
CollectionPageCategory, tag, author and archive pagesThe listing
FAQPageA post with FAQ content that renders on the pageThe questions and answers
VideoObjectA post with a video blockOne for each video
PersonAuthor pages, and as the article's authorName, link, job title, image and profile links

mentions lists name, address and image of the related products only, never price or stock, which can go stale. The publisher is an Organization named by Publisher Name under SEO, or the store name when empty, with Publisher Logo as its logo when set.

The JSON-LD of the demo post: the BlogPosting document and the start of the FAQPage document

Rendered from the page head: the BlogPosting for "How to pitch a tent in the wind" with its two images, dates, author Maya Hart (job title, image and two profile links), publisher, a video reference, word count 414, timeRequired PT1M, section "Tents and shelters", keywords, language en-GB, isAccessibleForFree and two mentions products, followed by the opening of a FAQPage with its first questions. The remaining documents continue below the crop.

Switches: one each for BlogPosting, BreadcrumbList, CollectionPage, FAQPage, VideoObject and Person.

Extending the output#

Two events let your own module change the head: coullworks_blog_structured_data_after (the JSON-LD documents) and coullworks_blog_page_head_after (canonical, alternates, Open Graph and Twitter). Both are listed on Events.

The XML sitemap and the RSS feeds are on Feeds and sitemap.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.