:exclamation: This is a production ready release, with the caveat that any issues should be reported as an issue on
this repo for quick action.
Feedback is positively encouraged, please see how to get involved below
The Frutiger font is specified for use on NHS web properties, but is only licensed for sites ending .nhs.uk - if your site is both an NHS property and is on the correct domain, you can add this back in by making your own child theme and adding in the below font declarations to a .scss file.
font-family: 'Frutiger W01';
font-display: swap;
font-style: normal;
font-weight: 400;
src: url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.eot?#iefix');
src: url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.eot?#iefix') format('eot'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.woff2') format('woff2'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.woff') format('woff'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.ttf') format('truetype'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.svg#7def0e34-f28d-434f-b2ec-472bde847115') format('svg');
}
@font-face {
font-family: 'Frutiger W01';
font-display: swap;
font-style: normal;
font-weight: 600;
src: url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.eot?#iefix');
src: url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.eot?#iefix') format('eot'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.woff2') format('woff2'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.woff') format('woff'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.ttf') format('truetype'),
url('https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.svg#eae74276-dd78-47e4-9b27-dac81c3411ca') format('svg');
}
Optional Settings
below.wp-content/themes
folderOptional Settings
section below)node
if you install using the optional commands above for local development of the theme itself.To accomplish this, you will need to take the following steps:
npm install
npm run build
npm run compress
npm run critical
Alternatively, if you only wish to modify minimal css for a single site, you can use the Custom CSS section within the theme customiser section.
add_filter('xmlrpc_enabled', '__return_false');
To your themes functions.php file, or if your hosting permits you can disable/block it at server level.This theme has been extended to style the following plugins automatically:
[x] Load in the NHS Frontend library
[x] Style header, amend markup to match expected output
[x] Provide zone for WordPress controlled menu (Customizer)
[x] Provide alternative header for NHS Organisations with white logo including title
[x] Style sidebar to match contents list styling
[x] Pagination styling
[x] Footer styling and WordPress menu inclusion
[x] Re-style core images output
[x] Re-style core buttons output
[x] Provide multiple button styles (via NHSBlocks plugin)
[x] Style tables
[x] Restrict Editor colour palettes to NHS Brand guideline colours
[x] Search results page layout
[x] Template layout code
[x] Typographic classes
[x] Breadcrumb trail styling and addition
[x] Forms elements
[x] Add Gravity Forms compatibility
[x] Add LearnDash compatibility
[x] Add WP HTML Emails compatibility
[x] Add The Events Calendar compatability
[x] Add theme update routine
[x] Composer build (including auto load NHSL Blocks plugin)
[x] Dependancy hint to suggest or force plugin dependancy load (for non-composer install)
[x] Widgetize footer region
[x] Widgetize 404 page
[x] Alternative navigation aid to Tabs
[x] Device checks (mobile, tablet, TV etc)
[x] Print layout / styling
[x] Accessibility audit
Deprecated / Removed
[x] Emergency alert - (moved to Nightingale-Companion plugin)
[x] Feedback Banner - Removed (plugin functionality rather than presentation)
[x] Custom Gutenburg Blocks (moved to NHSBlocks plugin)
[x] Native Gutenberg blocks (moved to NHSBlocks)
[x] Add Hero banner (moved to NHSBlocks plugin)
[x] Performance Improvements (moved to Nightingale-Companion plugin)
The codebase is released under the GNU General Public License v3.0, unless stated otherwise. The upstream NHS Frontend Library is released under the MIT license, for details please see NHSUK Frontend. The documentation is © Crown copyright and available under the terms of the Open Government License 3.0. Please see the National Archives website for more information on the Open Government Licensing Framework.