Conversation
…bing-hero Removes duplicate margin-bottom from the columns wrapper in main-services-stack and redundant margin-top:0 from the stats flex group in plumbing-hero; spacing is already governed by block attributes.
New elayne/post-loop-grid pattern with a responsive 3→2→1 grid (20rem minimumColumnWidth), portrait featured images, date/category meta, and query pagination. Uses inherit:true to pull context from the current archive/index page. Marked Inserter:false — template use only.
…t-loop-grid Both templates now reference elayne/post-loop-grid instead of elayne/blog-post-columns-portrait.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release (v4.4.0) introduces a new shared
post-loop-gridpattern that consolidates the post listing layout used across index and archive templates, reducing duplication and establishing a single source of truth for grid-based post loops. Bothtemplate-index-gridandtemplate-page-archivehave been refactored to reference this new pattern viawp:pattern, replacing their previously inline block markup. Additionally, redundant inline styles were removed from themain-services-stackandplumbing-heropatterns, aligning them with the theme's block-style CSS architecture. The version has been bumped to 4.4.0 with corresponding updates tostyle.css,readme.txt, andCHANGELOG.md.Pattern Architecture:
patterns/post-loop-grid.phpas a reusable post loop pattern with a grid layout, intended to be consumed by index and archive templates rather than duplicated inline in each.template-index-grid.phpandtemplate-page-archive.phpto delegate post loop rendering to the new shared pattern, improving maintainability when the grid layout needs future updates.Bug Fixes and Style Cleanup:
patterns/main-services-stack.phpandpatterns/plumbing-hero.php, ensuring these patterns rely on registered block styles rather than ad-hoc inline overrides that can conflict with theme.json values.Release Housekeeping:
style.cssandreadme.txt, and added a new changelog entry inCHANGELOG.mddocumenting the pattern refactor and style fixes.Files Changed:
CHANGELOG.md(Modified)patterns/main-services-stack.php(Modified)patterns/plumbing-hero.php(Modified)patterns/template-index-grid.php(Modified)patterns/template-page-archive.php(Modified)readme.txt(Modified)style.css(Modified)patterns/post-loop-grid.php(Added)