🎯 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 →

Block Patterns

Pro Feature

Block Patterns are pre-built page sections that combine multiple blocks for rapid sports website development. Insert a pattern and customize it instead of building sections from scratch.

🎯 Requirements

RequirementDetails
WordPress6.5 or higher
AnWP Sports Leagues PremiumRequired
AnWP SL KitRequired
Kadence BlocksFree plugin – provides layout components
WooCommerceOnly required for Online Shop pattern

🚀 Finding Patterns

  1. Open any page or post in the block editor
  2. Click the (+) block inserter button
  3. Click the Patterns tab
  4. Select SL Theme Kit from the category dropdown
  5. Click or drag a pattern to insert it into your content
Block inserter showing the Patterns tab with SL Theme Kit category selected, displaying available pattern thumbnails

📚 Available Patterns

Header Patterns

PatternContainsUse For
Header (Light)Kadence Column + Advanced HeadingLight background sections
Accent HeaderKadence Column + Heading (white text)Dark or colored sections
Section with HeaderFull section with padding + headingComplete content blocks

Section Patterns

PatternContainsUse For
Accent SectionColored background sectionCallouts, highlights
Secondary SectionAlternative styled sectionVisual variety between sections

Content Patterns

PatternContainsUse For
Hero SliderSL Kit Hero Slider (autoplay 5s)Homepage hero section
Games SliderAccent section + Games Slider blockMatch schedules display
Players SliderSL Kit Players Slider blockRoster showcase
SponsorsAccent section + 7 logo placeholdersSponsor logos
HonorsMulti-block trophy/achievement displayTeam history, awards
VideosYouTube video gridMedia gallery
Leaders3-section player stats layoutStatistical leaders
Online ShopWooCommerce product gridMerchandise (requires WooCommerce)

⚙️ Pattern Variables

Patterns use placeholder variables that you must replace with actual IDs after insertion:

VariableReplace WithHow to Find the ID
%site_team%Your team IDSports Leagues → Teams → hover over team → see post=XX in URL
%active_season%Season IDSports Leagues → Seasons → hover → see post=XX in URL

To replace a variable: Select the block → open the Inspector Panel (right sidebar) → find the attribute containing the variable → replace the placeholder with the actual ID.

✏️ Customizing Patterns

After insertion, patterns become regular editable blocks. You can customize any aspect:

  • Text: Click any heading or paragraph to edit inline
  • Colors: Select the block → Inspector Panel → Color settings
  • Spacing: Select Kadence Column → Spacing tab → adjust padding/margin
  • Data: Replace %site_team% and %active_season% with actual IDs
Dragging a block pattern from the inserter into the post content area

💡 Quick Examples

Games Slider Setup

  1. Insert the Games Slider pattern
  2. Select the Games Slider block within the pattern
  3. In the Inspector Panel, find the Query settings:
    • Filter by Team: Replace %site_team% with your team ID (e.g., 42)
    • Tournament ID: Set your tournament (e.g., 15)
    • Limit: 10
  4. Publish or update the page

Leaders Pattern for Football

The default Leaders pattern shows basketball-specific statistics. To adapt it for football:

  1. Insert the Leaders pattern
  2. Select each stats block individually
  3. Change stats_id to football stat IDs:
    • Offensive: Goals, Assists
    • Defensive: Tackles, Interceptions
    • Valuable: Rating, Minutes
  4. Replace team and season variables with actual IDs
  5. Publish or update the page

Tip

To find stat IDs, go to Sports Leagues → Config → Player Statistics. The stat ID is shown in the list or URL when editing a stat.

🆘 Troubleshooting

Pattern not visible in the inserter

Cause: Kadence Blocks plugin is not installed or activated.

Solution: Install and activate the free Kadence Blocks plugin from the WordPress plugin directory.

Variables not auto-filling

Cause: Variables like %site_team% are manual placeholders, not dynamic values.

Solution: You must manually replace each variable with the actual ID. See the Pattern Variables section above for how to find IDs.

Layout looks broken

Cause: Your theme’s CSS may conflict with pattern styles.

Solution: Adjust colors and spacing in the Inspector Panel to match your theme, or use a compatible theme like Flavor starter theme.

“Block has been modified externally” warning

Cause: The pattern was updated in a plugin release after you inserted it.

Solution: Click Attempt Block Recovery to try automatic fixes, or delete the block and re-insert the updated pattern.