Skip to main content

Coronavirus button

You can embed the NHS coronavirus button into your website, product or service to direct users to information on coronavirus (COVID-19) on the NHS website.

Example

You can embed the button in your website, product or service using a small piece of code.

How to use the coronavirus button

  1. Step 1 Add a button using a script

    To add our standard button on your site, simply add the following script to your code, in the place you want the button to appear on your page.

  2. or Choose a button design and add it using an image file

    There are different button designs in our button image pack. If you download this pack, you can choose the design you want to use on your website.

    Download the button image pack

    When you’ve chosen your preferred design, add the following piece of code into your code, in the place you want the button to appear on your page.

    <a href="https://www.nhs.uk/conditions/coronavirus-covid-19/?source={yourDomain}" target="_blank"><img alt="For the latest about coronavirus visit nhs.uk/coronavirus" src="{imageLocation}"></a>

    Replace ‘{yourDomain}’ with the name or URL of your website and replace ‘{imageLocation}’ with the file path for your chosen design.

    Example:

    <a href="https://www.nhs.uk/conditions/coronavirus-covid-19/?source=developer.api.nhs.uk" target="_blank"><img alt="For the latest about coronavirus visit nhs.uk/coronavirus" src="https://apimgmtstr2trrqmpcio8bj1.blob.core.windows.net/content/MediaLibrary/coronazone/NHSUK_button_landscape.png"></a>
  3. Step 2 Agree to our terms and conditions

    We have temporarily changed our syndication process, solely for these COVID-19 widgets and APIs, in order to make accessing them simpler and easier. We reserve the right to stop this temporary change at any time and to suspend your access. We will not ask you to create an account, but do need to know where they are going to be displayed. We may check this.

    By accessing these COVID-19 widgets or APIs you agree to comply with our syndication terms.

    As you are not required to have an account, we cannot contact you - but you should therefore regularly check back to this page for any updates.

  4. Step 3 Show us what you’ve done (optional)

    Send us a link with the button on your site to syndication.service@nhs.net.