๐ŸŽฏ Need Help?

Get Premium Support

Priority assistance from the developer

More from ANWP

Football Leagues Premium

Complete football/soccer league management for WordPress

Learn more โ†’

Blocks Reference

Pro Feature

AnWP SL Kit includes 5 exclusive Gutenberg blocks for creating dynamic sports displays: sliders, player cards, and staff profiles.

Block inserter showing the ANWP G-Blocks category with 5 SL Kit blocks

Block Categories

Sports Leagues provides three block categories: Sports Leagues (Core) – basic blocks included with the free plugin; Sports Leagues Premium – advanced blocks with “SL+” prefix; and ANWP G-Blocks (SL Kit) – exclusive slider and card blocks covered in this guide. For core and premium blocks, see the Blocks Reference.

๐Ÿ“š Available Blocks

BlockPurposeBest For
Hero SliderFull-width post slider with Ken Burns effectHomepage hero, featured articles
Games Horizontal SliderSports games carousel with scoresMatch schedules, recent results
Players Horizontal SliderPlayer carousel with photosQuick roster display, player highlights
Roster (adv)Player cards with customizable statisticsDetailed team rosters with stats
Staff (adv)Staff cards with job titlesCoaching staff, management team

๐Ÿš€ How to Add Blocks

  1. Open any page or post in the block editor
  2. Click the (+) block inserter button
  3. Find the SL Kit Blocks category (or search by name)
  4. Click or drag a block to insert it
  5. Configure settings in the Inspector Panel (right sidebar)

Hero Slider

Creates a full-width, auto-playing slider showcasing WordPress posts with featured images, titles, and optional excerpts. Includes Ken Burns zoom effect, customizable typography, and responsive controls.

Hero Slider block showing a full-width post with title overlay and navigation arrows

When to Use

  • Homepage hero sections
  • Featured blog posts showcase
  • Article highlights
  • Any full-width image slider with post content

Query Settings (Content Selection)

SettingDefaultDescription
Posts to ShowLatestOptions: Latest, Include by ID
Include IDs(empty)Comma-separated post IDs when using “Include by ID”
Limit5Number of slides (recommended: 3-10)
Filter by Category(empty)Comma-separated category IDs
Filter by Tag(empty)Comma-separated tag IDs
Filter by Author(empty)Comma-separated author IDs
Exclude IDs(empty)Comma-separated post IDs to skip
Offset0Skip first N posts
Image SizelargeOptions: thumbnail, medium, medium_large, large, full

Style Settings (Appearance)

Slider Behavior

SettingDefaultDescription
AutoplayONEnable automatic sliding
Autoplay Delay3 secondsTime between slides (1-10 seconds)
Speed1 secondTransition animation speed (0.3-3 seconds)
DirectionLTRSlider direction: LTR or RTL
LoopONLoop back to first slide after last
Enable ObserverONRe-initialize in tabs/accordions

Visual Effects

SettingDefaultDescription
Ken Burns EffectONSlow zoom animation on images
Text Slide EffectONSmooth text appearance on slide change
Muted BackgroundONDarken image for text readability

Navigation

SettingDefaultDescription
NavigationBothOptions: Both, Arrows, Dots, None
Arrows Color#cccNavigation arrow color

Layout & Spacing (Responsive)

SettingDesktopTabletMobile
Slider Height800px600px300px
Horizontal Padding30px30px20px
Bottom Padding120px60px40px
Title Font Size62pxauto32px

Typography & Colors

SettingDefaultDescription
Post Title Color#ffffffTitle text color
Post Title Text ShadowOFFOptional shadow for contrast
Post ExcerptOFFShow excerpt below title
Excerpt Num Words30Words to display in excerpt
Post Excerpt Color#ffffffExcerpt text color

Usage Examples

Homepage Hero with Latest Posts:

  • Posts to Show: Latest
  • Limit: 5
  • Slider Height (Desktop): 800px
  • Ken Burns Effect: ON
  • Autoplay Delay: 3 seconds

Category-Specific Slider:

  • Filter by Category: 5 (your category ID)
  • Limit: 3
  • Post Excerpt: ON
  • Excerpt Num Words: 20

Manual Post Selection:

  • Posts to Show: Include by ID
  • Include IDs: 123,456,789
  • Navigation: Arrows only

Best Practices

Use high-quality featured images (minimum 1920x1080px). Keep slide count between 3-7 for optimal engagement. Enable Ken Burns effect for visual interest. Enable Muted Background if using light text on light images.


Games Horizontal Slider

Displays sports games in a horizontal carousel with team logos, scores, dates, and game status. Fully integrated with Sports Leagues data.

Games Horizontal Slider showing multiple game cards with team logos and scores

When to Use

  • Recent/upcoming game schedules
  • Team-specific game highlights
  • League/tournament game listings
  • Homepage sports content
  • Sidebar game widgets

Query Settings (Game Selection)

SettingDefaultDescription
Tournament ID(empty)Filter by specific tournament (comma-separated)
Stage ID(empty)Filter by tournament stage
Season ID(empty)Filter by season
League ID(empty)Filter by league
Venue ID(empty)Filter by venue/stadium
Finished(empty)Game status: yes (finished), no (upcoming), empty (all)
Filter by Team(empty)Show games for specific team (single ID)
Filter by Game Day(empty)Show games on specific matchday
Days Offset(empty)Date range from today (e.g., -7, 7, -7:7)
Limit20Maximum games to show (recommended: 10-30)

Style Settings

SettingDefaultDescription
DirectionLTRSlider direction: LTR or RTL
First Slide(empty)Starting slide number (0, 1, 2…)
NavigationArrowsOptions: Arrows, Dots, Both, None
Arrows Color(inherits)Navigation arrow color
Show Game Date/TimeONDisplay match date/time
Show Team NameONDisplay team names
Show Team LogoONDisplay team logos
Tournament Title(empty)Custom text instead of tournament name
Game Date Format(site default)PHP date format (e.g., M j, Y)

Usage Examples

Upcoming Games for Specific Team:

  • Filter by Team: 42 (your team ID)
  • Finished: no
  • Limit: 10
  • Show Game Date/Time: ON

Recent Finished Games:

  • League ID: 10
  • Finished: yes
  • Limit: 15
  • Navigation: Both

This Week’s Games:

  • Days Offset: -7:7 (last 7 days to next 7 days)
  • Limit: 20
  • Game Date Format: l, M j (e.g., “Monday, Nov 17”)

Players Horizontal Slider

Displays team players in a horizontal scrolling carousel with player photos, numbers, positions, and names.

Players Horizontal Slider showing player cards in a carousel format

When to Use

  • Team roster displays
  • Player highlights
  • Squad showcases
  • Compact player lists
  • Sidebar player widgets

Query Settings

SettingDefaultDescription
Season ID(empty)Filter by season (comma-separated)
Team ID(empty)Filter by team (single ID)
Limit20Maximum players to show

Style Settings

SettingDefaultDescription
DirectionLTRSlider direction: LTR or RTL
NavigationArrowsOptions: Arrows, Dots, Both, None
Arrows Color#cccNavigation arrow color
Show NumberONDisplay player number
Show PositionONDisplay player position

Usage Examples

Team Roster Carousel:

  • Team ID: 15
  • Season ID: 8
  • Limit: 25
  • Show Number: ON
  • Show Position: ON

Starting XI Only:

  • Team ID: 15
  • Limit: 11
  • Navigation: Dots only

Roster (adv)

Displays team players as detailed cards with customizable statistics, nationalities, positions, numbers, and advanced styling options. The most feature-rich block for player displays.

Roster (adv) block showing player cards with photos, numbers, positions, and statistics

When to Use

  • Full team rosters with stats
  • Player profiles with detailed information
  • Season-specific player data
  • Custom stat displays (goals, assists, games played)
  • Professional player cards

Query Settings

Player Filters

SettingDefaultDescription
Season ID(empty)Filter by season (single ID)
Team ID(empty)Filter by team (single ID)
Stat League ID(empty)League for statistics calculation

Statistics Columns (6 customizable)

Each stat slot has two settings: the statistic type and calculation method.

SettingOptionsDescription
Stat 1-6DropdownSelect statistic from your Sports Leagues config
Stat Calc 1-6sum, average, max, minHow to calculate the stat

Available Statistics (depends on your Sports Leagues configuration):

  • Goals, Assists, Games Played (GP), Minutes Played
  • Cards (Yellow, Red), Saves, Clean Sheets
  • Age (default for Stat 4)
  • Custom stats from your sport setup

Style Settings

Display Options

SettingDefaultDescription
Show StatsONDisplay statistics on cards
Show NationalityONDisplay nationality flag
Show PositionONDisplay player position
Show NumberONDisplay jersey number
Show Roster StatusONDisplay status badge (Injured, Suspended)
Show BG ShapeONBackground decorative shape
Card LayoutAVisual style variant: A, B, or C

Colors

SettingDescription
Stats Label ColorColor for stat labels (Goals, Assists, etc.)
Stats Value ColorColor for stat numbers
Position ColorColor for position text
Number ColorColor for jersey number
Player Name ColorColor for player name
Border ColorCard border color
Roster Status BG ColorStatus badge background
Roster Status ColorStatus badge text color
BG Shape ColorDecorative shape color

Other Styling

SettingDefaultDescription
Border Radius5pxCard corner roundness (0 = sharp)
BG Shape Opacity(inherits)Background shape transparency (0-1)
Player Name Typography(inherits)Font size, weight, style

Usage Examples

Team Roster with Goals & Assists:

  • Team ID: 42
  • Season ID: 8
  • Stat League ID: 10
  • Stat 1: Goals (sum)
  • Stat 2: Assists (sum)
  • Stat 4: Age

Goalkeeper Statistics:

  • Team ID: 42
  • Stat 1: Saves (sum)
  • Stat 2: Clean Sheets (sum)
  • Stat 3: Games Played (sum)
  • Card Layout: B

Minimalist Roster (No Stats):

  • Team ID: 42
  • Show Stats: OFF
  • Show Position: OFF
  • Show Number: OFF
  • Show BG Shape: OFF

Statistics Tips

Use sum for cumulative stats (goals, assists). Use average for per-game stats. Ensure stats are configured in Sports Leagues Settings before using this block. Match the Stat League ID to where players actually competed.


Staff (adv)

Displays team staff (coaches, managers, trainers) as professional cards with job titles, nationalities, and customizable styling.

Staff (adv) block showing staff cards with photos, names, and job titles

When to Use

  • Coaching staff displays
  • Management team pages
  • Technical staff listings
  • Club staff showcases

Query Settings

SettingDefaultDescription
Season ID(empty)Filter by season (single ID)
Team ID(empty)Filter by team (single ID)

Style Settings

Display Options

SettingDefaultDescription
Show NationalityONDisplay nationality flag
Show JobONDisplay job title
Show BG ShapeONBackground decorative shape
Card LayoutAVisual style variant: A, B, or C

Colors

SettingDescription
Job ColorJob title text color
Staff Name ColorStaff member name color
Border ColorCard border color
BG Shape ColorDecorative shape color

Other Styling

SettingDefaultDescription
Border Radius5pxCard corner roundness
BG Shape Opacity(inherits)Background shape transparency (0-1)
Staff Name Typography(inherits)Font size, weight, style

Usage Examples

Coaching Staff Display:

  • Team ID: 20
  • Season ID: 8
  • Show Job: ON
  • Show Nationality: ON
  • Card Layout: A

Management Team with Branding:

  • Team ID: 20
  • Show Job: ON
  • Job Color: (your brand color)
  • Card Layout: B

๐Ÿ“Š Block Comparison

Quick reference to choose the right block:

FeatureHero SliderGames SliderPlayers SliderRoster (adv)Staff (adv)
Data SourceWP PostsSL GamesSL PlayersSL PlayersSL Staff
LayoutFull-widthCarouselCarouselGridGrid
StatisticsNoScoresNo6 customNo
ResponsiveYesNoNoNoNo
Best ForFeatured contentSchedulesQuick rostersDetailed infoStaff profiles

๐Ÿ†˜ Troubleshooting

Block Shows Empty or “No Data”

Cause: No data matches your filter settings.

Solutions:

  • Verify IDs are correct (Team ID, Season ID, etc.)
  • Check that data exists in Sports Leagues plugin
  • Try removing filters temporarily
  • For Games Slider: check the “Finished” setting

Stats Showing as 0 or Blank

Cause: Statistics not configured or no data entered.

Solutions:

  • Configure stats in Sports Leagues → Settings → Statistics
  • Enter player stats for games in Sports Leagues
  • Verify Stat League ID matches player’s competition

Images/Logos Not Showing

Cause: Missing media in Sports Leagues entries.

Solutions:

  • Hero Slider: Set featured images on posts
  • Games Slider: Upload team logos in Sports Leagues → Teams
  • Players/Roster: Upload player photos in Sports Leagues → Players
  • Staff: Upload staff photos in Sports Leagues → Staff

Slider Not Initializing in Tabs/Accordions

Cause: Slider needs to re-initialize when container becomes visible.

Solution: Enable the Enable Observer setting in the Style tab.

๐Ÿ“š Related Resources