Skip to content
Available for new work
Pages in Blog

GuidePremium

Article templates and listing layouts in CoullWorks Blog for Magento 2

The two article templates and the two listing layouts, where to choose each, what each changes on the page, and how to override the template files in your theme.

Updated 17 November 2026Back to the package pageBuy

There are two choices to make for how the blog looks: the template of each article, and the layout of each listing. Both have a store-wide default and a per-item override. This is deliberate: the blog ships two article templates and two listing layouts, not a gallery of designs, and takes its fonts, colours and breakpoints from your theme.

Article templates#

A post uses one of two templates:

TemplateWhat it renders
ArticleThe default. A single centred column: breadcrumb, category kicker, title, byline, featured image, body, tags, previous and next links, comments. Key takeaways, if the post has any, appear as a box under the introduction.
Article with quick-access railThe same article with a rail beside it that holds On this page, Key takeaways, Written by with share links, and Related. Takeaways are shown in the rail, so the inline box is removed.

Choose the default for the whole blog#

  1. Open Stores, Configuration, CoullWorks, Blog.
  2. In Article, set Default Article Template to Article or Article with quick-access rail. The shipped default is Article.
  3. Save the configuration. The field can be set per store view.

Choose the template for one post#

  1. Open the post in Content, CoullWorks Blog, Posts.
  2. Open the Template section and set Article Template to the default choice, Article or Article with quick-access rail.
  3. Save the post.

A value on the post wins over the default. A post left on the default choice, or with no valid value of its own, follows the store default.

Article#

Template file post/article.phtml, wrapper class cwb-article--plain.

A post on the default Article template at 1440 pixels, with tags, previous and next links and the comment form

A post on the default Article template: breadcrumb, the kicker "Trail notes", the title, the byline (Tom Reeve, Mountain leader, dates and reading time), a wide featured image, the body, two tag chips, Previous and Next links and the empty comments section with the Leave a comment form.

Article with quick-access rail#

Selecting this template adds the layout handle coullworks_blog_post_view_rail. It swaps the article for post/article-rail.phtml (wrapper class cwb-article--rail), adds the rail from post/rail.phtml and removes the inline takeaways box.

The top of a post on the rail template: breadcrumb, kicker, title and byline

The head of a post set to the rail template, cropped to the title area: the breadcrumb, the kicker "Tents and shelters", the title and the byline. The rail itself is shown section by section on The article rail.

The full post on the rail template at 1440 pixels, with the rail on the left

The whole page: the four rail sections sit to the left of the article body. On a narrow screen the rail folds into an "On this page" disclosure above the body.

Listing layouts#

The home, category, tag, author and archive pages show their posts as a grid of cards or as a list of rows.

Choose the default for the whole blog#

  1. Open Stores, Configuration, CoullWorks, Blog.
  2. In Listing, set Default Listing Layout to Grid or List. The shipped default is Grid.
  3. Save.

Override it for one category#

Open the category in Content, CoullWorks Blog, Categories and set Listing Layout in its Display section. Choosing the default entry follows the configuration. The override applies to that category's own page only.

Grid#

Cards from common/card.phtml: image, category kicker, title, date and reading time. The blog home at the top of Blog pages is the grid layout.

The blog home in the grid layout at 1440 pixels

Grid layout: two large featured cards, then three cards across.

List#

Rows from common/row.phtml: kicker, title, date and reading time, the excerpt, and the image at the right.

The blog home in the list layout at 1440 pixels

List layout, with Default Listing Layout set to List: the two featured cards first, then one row per post, each with its excerpt and a square image on the right. The featured posts are not repeated in the rows.

Override a template file in your theme#

Every storefront template can be overridden. Copy the file into your theme at the same path under CoullWorks_Blog/templates/, for example app/design/frontend/Acme/shop/CoullWorks_Blog/templates/common/card.phtml, edit the copy and flush the cache. The full list of files and the layout handles they belong to is on Layout and templates. The blog adds no theme of its own, so a copy only needs the markup you change.

The styling uses CSS custom properties prefixed --cwb-, so many changes (spacing, colours) need no template copy at all: set the property in your theme's stylesheet.

Available for new work

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