Skip to content

Footer with Newsletter Signup

Warm Bootstrap 6 footer with a newsletter card: adorned email field, topic toggle pills, consent check, simulated subscribe, link columns and a bottom bar.

Also known as: footer with newsletter, footer email signup, footer subscribe form, newsletter footer section

Footer with Newsletter Signup live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A warm, light Bootstrap 6 footer that puts the newsletter signup first: a cream card with an adorned email field, topic toggle pills and a consent checkbox, followed by a brand block, three link columns and a bottom bar. It suits shops, studios and blogs that want readers to subscribe before they leave the page.

How it works

The root <footer class="fns-root"> is pinned to data-bs-theme="light". The .fns-news section is a CSS grid that becomes two columns from the lg breakpoint (1024px). The email field uses the Bootstrap 6 form-control form-adorn label with a form-adorn-icon and a borderless form-ghost input. The topics are Bootstrap 6 toggle buttons: each label.btn-check.btn-outline.theme-primary wraps its own checkbox, so no id/for pairs are needed. The consent box is a plain .check inside a .form-field.

script.js listens for submit on .fns-form, always calls preventDefault() and validates the email with a simple pattern and the consent box. Invalid fields get aria-invalid="true" and their .form-field gets .fns-invalid, which shows the .invalid-feedback text. Focus moves to the first invalid control. A valid submit disables .fns-submit, shows a .spinner-border.spinner-sm, and after a short timeout reveals the .fns-success alert with the entered address, then resets the form. The script also fills .fns-year with the current year and makes .fns-top scroll back to the top.

Customization

  • --fns-accent and --fns-accent-strong on .fns-root: change the terracotta buttons, pills, headings and focus rings. The root maps them onto --bs-primary-* and --bs-control-checked-bg, so Bootstrap's own buttons and the checkbox follow.
  • --fns-bg, --fns-card and --fns-line on .fns-root: adjust the page tint, the newsletter card and the divider lines.
  • Add or remove label.btn-check items in .fns-topic-list to offer other topics. Their value ends up in data-topics on .fns-success.
  • Replace the window.setTimeout in the submit handler with a fetch() POST to your mailing list provider. Keep the success branch as it is.
  • Change grid-template-columns on .fns-links to fit more or fewer link columns.
  • Edit .fns-proof to show your own reader count and reading time, or delete the list.

Use cases

  • Online shops: a newsletter card with email field and topic pills sits at the top of the footer
  • Studios and blogs: visitors choose topics and tick a consent checkbox before subscribing
  • Content sites: a brand block and three link columns follow the signup card
  • Small businesses: a bottom bar holds the legal links and copyright

Accessibility

The footer uses <nav aria-labelledby> for each link column and a labelled <section> for the signup. Every input has a visible label, errors are linked with aria-describedby and flagged with aria-invalid, and the success alert has role="status" and receives focus. Icon-only social links carry aria-label. Links and the back-to-top button have visible focus outlines, and transitions are switched off under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1, so alpha APIs can still change. btn btn-primary becomes btn-solid theme-primary. Toggle buttons put the input inside label.btn-check. form-check is replaced by a bare .check, and input-group icons can use form-adorn. Subtle badges are badge badge-subtle theme-primary. Icons come from Bootstrap Icons.

Footer with Newsletter Signup at a glance

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

Questions about this template

Can I use the Footer with Newsletter Signup 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 6 and Bootstrap Icons 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@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/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">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Footer with Newsletter Signup – Bootstrap 6 footers component screenshot
Footer with Newsletter Signup · Bootstrap 6 Footers

More Footers

Simple Centered Footer – Pure CSS footers preview

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.

Dark Footer with App Badges – Tailwind CSS footers preview

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.

Footer with Newsletter – Bootstrap 5 footers preview

Footer with Newsletter

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

Multi-Column Footer – Tailwind CSS footers preview

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.

Mega Footer with Accordion on Mobile – Bootstrap 6 footers preview

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 App Download Buttons – Bootstrap 6 footers preview

Footer with App Download Buttons

Bootstrap 6 footer with a green app promo panel: generic iOS and Android download buttons, QR code, CSS phone mockup, link columns and a region Combobox.