wptheme.com

The general counsel menu: 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|0","bottom":"var:preset|spacing|0"}}},"className":"gw-counsel gw-open-bottom","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull gw-counsel gw-open-bottom" style="padding-top:var(--wp--preset--spacing--0);padding-bottom:var(--wp--preset--spacing--0)"><!-- wp:group {"align":"wide","className":"gw-counsel-sheet","layout":{"type":"default"}} -->
<div class="wp-block-group alignwide gw-counsel-sheet"><!-- wp:group {"align":"wide","className":"gw-section-head gw-ruled-head","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between","verticalAlignment":"bottom"}} -->
<div class="wp-block-group alignwide gw-section-head gw-ruled-head"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}}} -->
<div class="wp-block-group"><!-- wp:paragraph {"className":"gw-label"} -->
<p class="gw-label">What we do</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Services</h2>
<!-- /wp:heading --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:table {"className":"gw-counsel-table gw-counsel-one"} -->
<figure class="wp-block-table gw-counsel-table gw-counsel-one"><table class="has-fixed-layout"><tbody><tr><td>Service one</td><td>A short, plain-language description of the service and who it is for.</td></tr><tr><td>Service two</td><td>A short, plain-language description of the service and who it is for.</td></tr><tr><td>Service three</td><td>A short, plain-language description of the service and who it is for.</td></tr><tr><td>Service four</td><td>A short, plain-language description of the service and who it is for.</td></tr><tr><td>Service five</td><td>A short, plain-language description of the service and who it is for.</td></tr><tr><td>Service six</td><td>A short, plain-language description of the service and who it is for.</td></tr></tbody></table></figure>
<!-- /wp:table --></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