Squad and players

On this page

You enter your squad once, in Theme settings. Four places read it:

  • The Player choice of Name and number printing on product pages.
  • The Shop by player section (a row or carousel of player cards, usually on the home page).
  • The Print studio section (its Choose a player mode).
  • The Player products section, which shows a player's collection when a shopper picks that player on a product page.

Enter the squad

Open Theme settings > Squad and fill in Players. Write one player per line, with the fields separated by a vertical bar:

number | name | position | team | shirt name | collection handle
FieldRequiredWhat it does
numberYesOne or two digits. A leading # is ignored. Kept as typed, so 07 stays 07.
nameYesThe full name, shown on player cards and in lists.
positionNoShown under the name, for example Forward. Can be hidden on product pages (see the personalise block settings).
teamNoGroups players into tabs, for example Men and Women.
shirt nameNoThe text printed on the shirt and shown on the player tile. Defaults to the last word of the name.
collection handleNoThe collection that holds this player's products. Used for the player's card link and the Player products section.

Rules:

  • Only number and name are required. Leave a middle field empty to skip it, but keep the bars: 10 | Amara Diallo | | Women | DIALLO.
  • A line without any vertical bar may use commas instead: 7, Lena Brandt, Midfielder. Use bars when a name contains a comma.
  • A line is skipped when the number is not 1 or 2 digits, contains letters, or when the name is empty. Blank lines are skipped.
  • The squad is not sorted. Players appear in the order you enter them.

Examples

9 | Ade Okafor | Forward | Men
07, Lena Brandt, Midfielder
#10 | Tomas Rey | | Women | REY JR | player-rey
1 | Sofie Brandt | Goalkeeper | Women | BRANDT | sofie-brandt
  • The first line prints OKAFOR and 9 (the shirt name is the last word of the name).
  • The second line uses the comma form. It prints BRANDT and 07.
  • The third line prints REY JR and 10 and links to the collection player-rey.

Both presets ship with a demo squad of 14 players. Replace it with your own before you publish.

Name rules

The shirt name is cleaned the same way as a shopper's own name: it is upper-cased and limited to the name length set in Theme settings > Personalization > Name length limit (letters). The number is limited to two digits. See Name and number printing.

Collection handle

Enter the handle of the player's collection, for example player-rey. You can paste a collection path such as /collections/player-rey; the theme keeps the part after the last slash. If no collection with that handle exists, the field is ignored: the player has no link and no collection count.

To find a handle, open Products > Collections in the admin, open the collection and read the last part of its URL.

Teams and the team filter

The team field splits the squad into groups.

  • On the product page, the Player choice shows one tab per team when the shown players belong to more than one team. With a single team there are no tabs. Players with no team form a group labelled Squad.
  • In the Name and number block on the product template, the Team setting limits the product to one team. For example, set Team to Women on the women's shirt template so only women's players are offered. Matching ignores case and must otherwise be exact. Leave it blank to offer every player.
  • In Shop by player, tabs appear when the squad has more than one team. Players with no team form a group labelled Other players.

Use a product template per team when your men's and women's shirts are separate products: create a copy of the product template, set Team in its Name and number block, and assign the template to those products.

Shirt name and number

  • The player tile on the product page shows the shirt name and the number, with the position under it when Show player positions is on.
  • The line item on the cart carries the shirt name and number, not the full name.
  • Two players can share a number if they are in different teams or have different names. Each player is identified internally by the number and the handle of the name, for example 10-amara-diallo. This identifier is used in print studio links.

Shop by player section

Add Shop by player from Add section on the home page (or any page). It lists every squad player as a card or row.

SettingWhat it doesDefault
Players shownEvery squad player, or only players that have a Player block.Every squad player
HeadingSection heading.Blank
TextShort text under the heading.Blank
Link label and LinkOptional link in the section header.Blank
ImageA picture shown beside the list. Rows structure only.None
LayoutCards (a horizontal carousel of tiles) or Rows (a list). Theme default follows Layout style: Framed gives Cards, Open gives Rows.Theme default
Color schemeThe section's color scheme.Scheme 2
Top padding and Bottom paddingSpace above and below, 0 to 120 px in steps of 4.88 and 96 px

A card or row links to the player's collection. It shows the number of products in that collection when the squad line has a collection handle and the collection exists. Without a link target it is a plain, unclickable tile.

Optional Player blocks add a portrait and a link to a squad player. A block is matched to the squad by number.

SettingWhat it does
NumberMust match the number written in the squad exactly. 7 does not match 07.
TeamOnly needed when two teams use the same number. Matching ignores case.
PortraitA photo for the player's card. Shown on cards, not on rows.
LinkWhere the card goes. Blank uses the collection set for the player in the squad.

How it works:

  1. Add the squad in Theme settings > Squad.

  2. In the Shop by player section, select Add block > Player.

  3. Enter the player's Number as it appears in the squad and upload a Portrait.

  4. If Players shown is Only players that have a block, the section lists only the players you added blocks for, in the order of the squad.

In the theme editor, a block whose number matches no squad player shows a note: No squad player has the number, so this block is not shown. Check the number and the Team value.

Player products section

The Player products section shows a row of product cards. On a product page it changes when the shopper picks a squad player in the Player choice: it loads that player's collection and shows the shirts with the player's name and number.

Add it from Add section on the product template (and optionally on collection templates).

SettingWhat it doesDefault
HeadingFixed heading. Leave blank to show More from this collection first and More with, followed by the player's shirt name and number, once a player is chosen.Blank
CollectionThe collection shown before a player is chosen. Blank uses the collection the shopper came from.None
Number of products to show2 to 8.4
Last tile with the numberAdds a last tile with the player's number that links to the player's whole collection. Theme default shows it in the Open structure only. Options: Theme default, Show, Hide.Theme default
Color schemeColor scheme of the section.Scheme 1
Top padding and Bottom padding0 to 120 px in steps of 4.88 and 96 px

Behaviour:

  • On a product page, the section needs a collection. Set Collection, or open the product from a collection so the page knows it. With neither, the section is hidden on the storefront and shows an explanation in the theme editor.
  • On a collection page the section always shows the collection being viewed; the Collection setting is not used.
  • The section only reacts when the shopper chooses a player from the squad. A custom name and number does not change it. A player whose squad line has no collection handle, or whose collection does not exist, leaves the section as it was.
  • While a player is chosen, the cards show the player's name and number: on the back of the card when the card style is Kit and the card flips, as a small label on the photo when the card style is Photo.
  • A quick view does not change the section.

The Print studio section (a name and number call to action, usually on the home page) reads the same squad. When the squad is not empty and Offer a choice of squad players is on, shoppers can switch between Your name and number and Choose a player. The button then links to the product you set in the section, with the typed name and number or the chosen player in the address, and the product page fills them in. See Name and number printing.

Troubleshooting

ProblemCheck
A player is missingThe number has more than two digits or contains letters, or the name is empty.
The Player choice does not appear on a productThe squad has no players for the Team set in the block, or the product has no Printing value that maps to the player role.
A portrait does not showThe block Number differs from the squad number (7 and 07 are different), or the layout is Rows, which does not show portraits.
A player card has no link or countThe squad line has no collection handle, or no collection with that handle exists.
Player products shows nothingNo Collection is set and the product was not opened from a collection.