This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

NHS Blocks


NHS styled blocks for WordPress using the Gutenberg editor, based on the excellent work from the NHSUK Front-end Library. These blocks mean your WordPress site can offer the latest care cards, site promos and info panels to your users, and that all of this content will be styled to match the NHS branding guidelines.

This plugin is designed principally for use by NHS organizations, but can be used by anybody.

This plugin previously required Gutenberg 7.9.1 (as a standalone plugin) to be installed and active. This requirement
has now been removed and it uses the native Gutenberg that ships with WordPress 5.3 and higher. If you also have the
Gutenberg plugin installed we strongly encourage you to deactivate the Gutenberg plugin as it may cause future conflicts
with the nhsblocks plugin (at time of writing it doesn’t, but Gutenberg updates every fortnight and we don’t plan to do
fortnightly releases of nhsblocks)

Development / Contributing

Contributions to development of this work are welcome at our GitHub repository.


  • This plugin adds a new type of block to your WordPress – titled NHS Front-end – with 10 new blocks based on the NHS Digital Front-end Library
  • Dashboard Layout – a graphical nav panel for users to jump to sections of your site
  • Do / Don’t lists – Simple lists in a display card with ticks and crosses to denote actions they should or should not take. Can also be used for status updates, projects etc
  • Buttons – Restyling of buttons to match NHS Digital layouts
  • Reveal Elements – Either simple arrow based expandable sections, or icon based with plus/minus icons
  • Panels – Text blocks with title sections to separate your content out cleanly
  • Promo Blocks – Clean blocks which are completely linked to inner content / external sources with title, text and optional images
  • Testimonial / Quote – Simple display device for highlighting user feedback, personal quotes or other text you would like to highlight
  • Grouped blocks – pre-defined layouts for displaying your content in more eye catching ways
  • Hero – a full screen width block, with optional single color or image background and optional block of text to anchor the page and set clear purpose


This plugin provides 15 blocks.

  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks
  • NHS Blocks


This section describes how to install the plugin and get it working.

  1. This plugin uses the core version of Gutenberg included in WordPress 5.2 and higher. If you also run the Gutenberg
    plugin, you may encounter issues.
  2. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress
  4. Navigate to edit or create any page or post.
  5. When you go to add a new block to your content, you will see a new section titled “NHS Front-end”. In here are all of the new blocks this plugin provides. Experiment – almost all of the blocks have style variations available.


Is this plugin restricted to only NHS Organizations

This plugin has been built specifically for use in the NHS, but it is open source code and you are free to use it on any site.


April 23, 2020
Kudos to Tony Blacker & the NHS leadership team for making this available for us all, and their long-term commitment to doing the necessary updates. There are a lot of user-friendly blocks here that you’ll have trouble finding elsewhere.
Read all 2 reviews

Contributors & Developers

“NHS Blocks” is open source software. The following people have contributed to this plugin.


“NHS Blocks” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “NHS Blocks” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change log


  • Stripe option for table block


  • Nhs frontend framework upgraded to 8
  • Replaced node-sass to dart sass


  • Fix for various blocks as part of our ongoing work to support wordpress 6.4


  • Fix for dashboard navigation block as part of our ongoing work to support wordpress 6.4
  • Fix for deprecated richText multiline prop in simple reveal block.


  • Package updates
  • Vulnerability fixes


  • Fix for deprecated block_categories
  • Fix for simple reveal content edit

  • Readme files translation to US English


  • Fixed issues with previous release


  • Accessibility improvement in card region block
  • Accessibility fix for NHS simple reveal block
  • Support for custom html in NHS simple reveal block


  • Fix for Bullet-points in admin screens


  • Removed composer requirement


  • nhsblocks preview pop-up style improvement in admin section


  • Changed composer settings to use nhsleadership/nhsblocks


  • Changes for deprecated wp.editor.URLInput
  • Version nhsblocks style.min.css


  • Updated tested up to WP 6.0


  • Security patch upgrade with npm version 7.19.1 and node version 16.0
  • Style fix for reveal block
  • Style fix for action and pagination link
  • Style fix and support for nhsblocks care card block
  • Partial style support for nhs front-end framework 6.1.0 components


  • Removed check for Nightingale theme so plugin css loads to editor view correctly, this is phase one of no longer
    needing to maintain plugin css within the theme itself.
  • Fixed pge contents list not checking inner block content (props to @danielknell)


  • Fixed fatal error (white screen of death) with edge cases of hero, reveal and dashboard blocks
  • added tag component
  • corrected IE10/11 javascript bug affecting hero placement
  • multiple accessibility improvements, particularly with screen reader and contrast issues
  • updated to NHSUK front-end library 4.1.0
  • N.B. if you are also using the Nightingale theme, tags will not display correctly unless you also update Nightingale
    to v2.3.1


  • Updated internal react and react-test-renderer to avoid conflict js error crashing editor
  • Updated reveal deprecated code to ensure continuity of all versions
  • Removed button block dependency on learndash install being present


Hotfix to remove react error whenever hero blocks or dashboard panels were triggered.


  • Upstream library changed to nhsuk v4
  • Promos and Panels amended to work with new nhsuk-card component
  • Improved theme check to see if Nightingale is active theme or parent theme
  • Reveal block rework
  • Improved jQuery checks for hero and tabbed elements


  • Added inner blocks to cards and reveals.
  • added toggle for these inner blocks to turn inner blocks on or off.


  • Removed requirement for separate Gutenberg plugin – instead use core WP version of Gutenberg. If you currently have
    the Gutenberg plugin purely for the NHSBlocks plugin to work, we actively encourage you to remove the Gutenberg plugin
    from your deployment to improve stability and performance.
  • visually hidden messages modified on care cards so status is reflected to screen readers
  • removed php7.4 declaration types for backwards compatibility
  • updated dependencies in composer
  • Ensured default values added to all text fields to make it easier to edit, improved UX
  • Added preview styling to block chooser so you can see what each block does before selecting it.
  • Modified logic on action link to make it more stable (and reduce incidence of “Resolve block” notifications)


  • Removed a lot of excess styling in the css
  • Ensured compatible with Gutenberg 7.9.1
  • Tested fully on non NHS themes
  • Targeted styling in editor to only editor view and style preview panel.


Addition of multiple new blocks:
* Section Stripes – full width alternating white and grey stripes that can have inner blocks within. Great for full
width homepages and landing pages.
* Contents list – 2 options:
* Page contents – will autodetect all h2 tags on the page and show anchor links to them
* Other pages – you can manually add links to other pages (or external resources) in an easy to use list.
* Review Date – add the block and an area will be added to your page showing the date of when it was last reviewed (i.e
. now)
* Pagination – want a prev and next button. Add this block, and manually configure your previous and next links. Great
for process flows or user guides.
* Action link – want to suggest a user follows a link, but don’t want a button. Use an action link
* Back link – let users step back a page. (This uses javascript -1, so if users land on the page from another site and
click this they will go back where they came from….)
Additions of style options to pre-existing blocks:
* Core table block can now be styled like nhsuk front-end, with fully responsive tables
* Images can now be amended to nhusk styling
* Addition of warning call-out option to cards. Particularly useful for Covid-19 alerts
Thanks to @verytwisty for all the pull requests and support, 90% of this update is her work.
(Also some remedial work to ensure inner block compatibility with Gutenberg 7.6 and some minor housekeeping with file


  • Added examples to show in block selector region for all blocks.
  • Amended Dashboard and Groups to be Gutenberg 7.5 compatible
  • Updated upstream NPM libraries – principle change being NHSUK Front-end library


  • Minor update for stable tag update.


  • Updated for Gutenberg 7.4 – you will need to update Gutenberg for this plugin to continue functioning
  • Dashboard block and grouped block changed from __experimentalTemplateOptions to __experimentalBlockVariationPicker
    • This is technical debt and will need revisiting when this feature moves out of experimental phase
  • Button default text added for better UX
  • Button link moved to right hand Inspector area for improved UX
  • Incorrect image name on dashboard block. appears to be a breaking change – it isn’t! Any previously created
    dashboard, when edited will come up as invalid content due to this fix. You will need to click the three dots on the
    block editor and click “resolve” to repair.
  • Corrected some funky and unusual css bugs


  • IE10/11 compatibility with Hero Block
  • Additional css filters for buttons, panels and promos


  • Reworked js filters to position hero at head of page


  • Moved css and js from theme in to the blocks to enable standalone functionality
  • Added css to avoid conflicts with LearnDash (Conflicts triggered by Gutenberg plugin, but not in our gift)


  • Added Base language (English) and ensured full internationalization. Translations welcome 🙂
  • Registered all blocks so they show correctly on plugin page
  • Improved Screenshot library for clearer understanding of plugin functionality from within listing / wp-admin search function


  • First stable public release of the plugin.
  • Included modules:
    • Dashboard links – designed for your home page or a section home. You can add graphical sections with text overlays linking to your inner pages.
    • Do / Don’t Lists – simple panels with lists of items with either a tick or a cross next to them.
    • Button – NHS styled buttons, available as primary (green), secondary (blue) or reverse (white)
    • Reveal – expandable areas of the screen. Available either as standard reveal (down arrow) or expander (plus icon)
    • Panels – Text areas with titles, text and buttons for call to action. Available as standard white panel, grey panel or white panel with coloured header.
    • Promo – Linked boxes with text and optional images. Available in standard or smaller text variants.
    • Testimonial – quotes or testimonials can be included with this block. Available as standard (blue text with blue left hand border) or inverted (white text with blue background and white left hand border)
    • Cards – Information cards. Coloured headers with an arrow pointing to text content. Available as standard care card, warnings (red header) or alerts (red header, black body)
    • Grouped Items – pre configured layouts of elements, with either testimonials, panels or promos inside each field.
    • Hero Banner – a full screen width hero image, with optional text overlay box including title and tagline. Ideal for graphically anchoring your website sections.