Patterns and Page Templates

Hattrick’s pages are built from patterns: ready-made groups of blocks you add and then edit like any other content. Find them in the block inserter’s Patterns tab, under the Hattrick categories:

  • Hattrick – Pages: whole pages (Home, Standings, Schedule, Scoreboards, Match Reports, Team Roster, Sponsors, Contact and Shop Home).
  • Hattrick – Sections: the sections those pages are made of, such as the News Slider, Next Matches, Featured Statistics, Video Highlights or the Sponsors Carousel.
  • Hattrick – Cards: single cards, such as a player, a fixture or a post.
  • Hattrick – Posts: the news and video grids.
  • Hattrick – Components: the info, success, warning and error boxes.

Creating a page from a pattern

When you add a new page, WordPress offers the page patterns. Pick one, and the page starts with its blocks. You can also insert a page pattern into an existing page.

Choosing a page pattern for a new page

Page templates

In the page’s sidebar, under Template:

  • Pages (the default): the title band, then the page’s text in a column for easy reading.
  • Page Wide: the title band, then the content at full width. The Standings, Schedule, Scoreboards, Match Reports and Team Roster pages use it.
  • Page Canvas: no title band, only the header, your content and the footer. The home page and the shop’s home use it.

The home page

  1. Add a page, choose the Home Page pattern, and set its template to Page Canvas.
  2. Publish it, then go to Settings → Reading, choose A static page and pick it as your homepage. Pick your news page as the posts page.

The patterns ship with no team picked, so on a league site they show every club. For a club site, select a block such as Matches or Players and pick your team in its sidebar (see Setting Up SportsPress).

Was this page helpful?