Skip to content

Medical Clinic Footer with Emergency Info

Medical clinic footer with an emergency number strip, opening hours that highlight today and show open-now status, department links and a patient portal button.

Also known as: healthcare website footer, clinic footer with opening hours, hospital footer design, doctor office website footer

Medical Clinic Footer with Emergency Info live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A medical clinic footer built with Bootstrap 5 for doctor's offices, family practices and outpatient centres. This healthcare website footer opens with an emergency information strip, shows clinic opening hours with today highlighted and a live open-now status, and links to departments, patient services and the patient portal.

How it works

The wrapper .mcf-root holds a thin sample page strip and footer.mcf-footer. The blue .mcf-emergency region says to call 911 in an emergency and offers the nurse line as a tel: link plus a copy button. The main row has the brand block with portal and appointment buttons and an address, the .mcf-hours card, and two nav columns. An accreditation line and the .mcf-bottom legal row close the footer.

Each day in .mcf-week has data-day (0 = Sunday) and, when open, data-open and data-close in 24-hour time. The script marks today's row with is-today, then the [data-mcf-status] pill shows "Open now", "Closes soon" (within CLOSING_SOON_MIN minutes) or "Closed" with the next opening time. The [data-mcf-copy] button copies data-mcf-number, switches its label to "Copied" and announces the result; if copying is blocked it announces the number instead. The year in [data-mcf-year] is set by the script.

Customization

  • --mcf-blue and --mcf-blue-dark in .mcf-root: change the emergency strip, buttons, today highlight and icons.
  • data-open / data-close on each .mcf-week li: set your hours; remove both attributes for a closed day.
  • CLOSING_SOON_MIN in script.js: changes when the status switches from "Open now" to "Closes soon".
  • data-mcf-number on .mcf-call: the number that the copy button copies; keep it in sync with the href.
  • --mcf-open and --mcf-closed in .mcf-root: change the colours of the open and closed status pill.
  • --mcf-radius in .mcf-root: changes the 10px corner radius of the strip, cards and buttons.
  • Edit the .mcf-accred paragraph to name the accreditation bodies and licence your clinic actually holds.

Use cases

  • Family practices: patients see today's hours and whether the clinic is open before they call
  • Outpatient and specialist centres: department links and the patient portal button sit on every page
  • Urgent care clinics: the emergency strip and nurse line are visible at the bottom of each page
  • Dental and physiotherapy practices: the hours card and appointment button work without changes

Accessibility

The emergency strip is a labelled region with a heading. Link columns are nav elements with aria-labelledby, contact details use address, and today's row has aria-current="date" plus hidden "(today)" text. Copy results are announced in a polite role="status" region. Social links use neutral icons with hidden network names. Focus outlines are clearly visible and tap targets are at least 40 px tall.

Usage notes

Requires Bootstrap 5 (added automatically), Bootstrap Icons and the Nunito Sans font. Hours are compared with the visitor's device time, so the status assumes visitors are in the clinic's time zone. Replace 911 with the emergency number for your country.

Medical Clinic Footer with Emergency Info at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons, fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Footers
License
Free for personal and commercial use

Questions about this template

Can I use the Medical Clinic Footer with Emergency Info code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap">
Medical Clinic Footer with Emergency Info – free Bootstrap 5 footer template
Medical Clinic Footer with Emergency Info · free Bootstrap 5 footer template

More Footers

Simple Centered Footer – free Pure CSS footer template

Simple Centered Footer

Minimal centered footer in pure CSS with a logo, tagline, links with animated underlines, round icon links and an auto-updating copyright year.

Multi-Column Footer – free Tailwind CSS footer template

Multi-Column Footer

Dark Tailwind CSS website footer with brand block, social icons, four labelled link columns and a bottom bar with copyright and status.

Dark Footer with App Badges – free Tailwind CSS footer template

Dark Footer with App Badges

Dark Tailwind CSS footer with four link columns, App Store and Google Play badges, and a language select that remembers the choice.

Mega Footer with Accordion on Mobile – free Bootstrap 6 footer template

Mega Footer with Accordion on Mobile

Large Bootstrap 6 footer whose five link columns turn into an exclusive details accordion on phones, with brand block, stats strip, CTA and legal bar.

Footer with Newsletter – free Bootstrap 5 footer template

Footer with Newsletter

Dark Bootstrap 5 footer with a newsletter signup panel, email validation, social icons, three link columns and a legal bar.

Marketplace Footer with Seller and Buyer Columns – free Tailwind CSS footer template

Marketplace Footer with Seller and Buyer Columns

Marketplace website footer with separate buy and sell columns, a help center search that filters popular articles, trust and safety links, app links and a region select.