Patterns

All patterns are designed to be responsive, mobile-friendly, accessible, and optimized for performance. The goal is to allow you to easily drag and drop any number of these patterns in any order on a page without needing to modify any code or block settings—simply update the content and colors as needed. You should be able to create a multi-page site using any combination of these patterns, without the need to develop new ones.

If you're new to WordPress's Block Patterns, check out the WordPress's Block Patterns Guideopen in new window

BC Gov Logo Light

Description:

This is an experimental pattern that is not yet ready for use.

Horizontal Card with Large Image

Standard layout
Horizontal Card with Large Image
Example implementation
Example Horizontal Card
Variation Example right
Example Horizontal Card

Description:

Full-width layout with flexible content area and optional button component.

Vertical Cards

Standard layout
Vertical Cards
Example implementation
Example Vertical Cards

Description:

Flexible card layout that supports both images and icons.

Hero Image with Title

Standard hero banner
Hero Image with Title Pattern
Example implementation
Example Hero Image with Title Pattern

Description:

Main banner images with text overlay

Secondary Hero

Standard layout
Secondary Hero Pattern
Example implementation
Example Secondary Hero

Description:

Smaller banner sections with compact layout

Heading with Paragraphs

Standard layout
Heading with Paragraphs Pattern

Description:

Text content with styled heading

Image & Text

Standard layout
Image & Text Pattern
Example implementation
Image & Text Pattern
Variation Example right
Image & Text Pattern

Description:

Image and text content blocks with flexible layout options

Team Pattern

Standard layout
Team Pattern
Example implementation
Team Pattern

Description:

Staff and team member displays with contact information

Information Contact Socials

Standard layout
Information Contact Socials Pattern
Example implementation
Information Contact Socials Pattern

Description:

Contact information

Icon with Excerpt

Standard layout
Icon with Excerpt Pattern
Example implementation
Icon with Excerpt Pattern

Description:

Short content blocks with icons

Card with Hyperlink List

Standard layout
Card with Hyperlink List Pattern
Example implementation
Icon with Excerpt Pattern

Description:

Card layout with icon and title at the top

Best Practices

  1. Pattern Selection

    • Choose patterns based on content type
    • Maintain consistency across pages
    • Consider mobile responsiveness (How patterns look on mobile devices when stacked on top of each other)
  2. Content Population

    • Replace all placeholder text
    • Use appropriate image sizes
  3. Accessibility

  4. Performance


Developer Troubleshooting

Common Issues

  1. Images Not Loading

    • Verify image path in PHP function

      Example:<img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/bcid_h_rgb_pos.png' ); ?>"

    • Check image exists in assets folder

    • Confirm proper escaping

  2. Pattern Not Appearing

    • Verify category assignment
    • Clear cache and rebuild
  3. Style Inconsistencies

    • Review block settings
    • Check for custom CSS conflicts
    • Verify theme.json settings

Tips for adding or updating patterns

  • All links should use "#" as the href
  • Remove any localhost or production URLs in the href attribute

For additional support or pattern requests, please submit an issue on the GitHub repository.

Contributors: ASpiteri-BCGov