wptheme.com

Plan cards: a free WordPress block pattern

How to use it

  1. Copy the markup below.
  2. In the block editor, open the options menu and switch to the Code editor.
  3. Paste the markup where you want the section, then switch back to the Visual editor.
  4. Swap in your own text and images. Colors come from your theme's palette.

Block markup

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|0"}}},"className":"gw-plans gw-open-bottom","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull gw-plans gw-open-bottom" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--0)"><!-- wp:group {"className":"gw-centre-head","layout":{"type":"default"}} -->
<div class="wp-block-group gw-centre-head"><!-- wp:heading -->
<h2 class="wp-block-heading">Services</h2>
<!-- /wp:heading --></div>
<!-- /wp:group -->

<!-- wp:group {"className":"gw-plan-cards gw-plan-single","align":"wide","layout":{"type":"grid","columnCount":1,"minimumColumnWidth":"17rem"}} -->
<div class="wp-block-group gw-plan-cards gw-plan-single alignwide"><!-- wp:group {"className":"is-style-gw-document gw-plan-card","layout":{"type":"default"}} -->
<div class="wp-block-group is-style-gw-document gw-plan-card"><!-- wp:paragraph {"className":"gw-label"} -->
<p class="gw-label">What we do</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"className":"gw-plan-name"} -->
<p class="gw-plan-name">Services</p>
<!-- /wp:paragraph -->

<!-- wp:list {"className":"gw-plan-list"} -->
<ul class="wp-block-list gw-plan-list"><!-- wp:list-item -->
<li><a href="/services/">Service one</a></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><a href="/services/">Service two</a></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><a href="/services/">Service three</a></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><a href="/services/">Service four</a></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><a href="/services/">Service five</a></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><a href="/services/">Service six</a></li>
<!-- /wp:list-item --></ul>
<!-- /wp:list --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

Uses preset color and spacing slugs from the Groundwork theme (base, surface, accent, contrast). In another theme, map them to that theme's palette.

See it in a live site