Skip to content

Law Firm Homepage Template

Bootstrap 6 law firm homepage template with a drawer navbar, practice area tabs, case results, attorney profiles, client reviews, FAQ and a free consultation form.

Also known as: lawyer website design, attorney landing page, legal services website layout, law office homepage

Law Firm Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A complete Bootstrap 6 law firm homepage for a fictional practice, Ashcombe Reid, with a parchment and oxblood look, practice area tabs, case results, attorneys, reviews and a consultation form.

How it works

Everything sits inside .lw-page (data-bs-theme="light"), which remaps the Bootstrap 6 primary role (--bs-primary-bg and related tokens) to oxblood for buttons, badges and the stepper.

  • Top bar: the script fills [data-lw-open-status] from the visitor's clock and LW_HOURS, so it never goes stale. A text button opens the call-back dialog.
  • Navbar: navbar lg:navbar-expand with a <dialog class="drawer drawer-end"> for mobile. "Practice areas" opens a .menu. Its data-lw-area links open the matching tab via Tab.getOrCreateInstance().
  • Hero: serif headline, calls to action, a <dl> of statistics and a framed photo with a "Recent result" card.
  • Practice areas: nav nav-pills nav-pills-vertical tabs switch five .tab-pane panels.
  • Results, attorneys, process: a dark results grid, four partner cards and a stepper md:stepper-horizontal inside .contains-inline.
  • Reviews and FAQ: quote cards with avatar avatar-subtle initials and an exclusive accordion of <details name="lw-faq">.
  • Consultation form: <form data-bs-validate novalidate> with a Combobox (data-bs-name="area"). On submit the script flags invalid fields and checks the Combobox's hidden input. It then simulates sending and opens #lw-toast.
  • Call-back dialog: #lw-callback is a <dialog class="dialog"> with a btn-check radio group. A valid submit closes it and shows a toast.

Customization

  • To rebrand, change --lw-oxblood, --lw-brass and --lw-paper on .lw-page in style.css, plus the --bs-primary-* overrides.
  • Edit LW_HOURS in script.js to set your office hours.
  • Replace the setTimeout in the .lw-form submit handler with fetch() to your intake endpoint. The call-back form has a matching comment.
  • Add or remove .tab-pane panels, their nav-link buttons and the data-lw-area links to match your practice groups.
  • Delete sections such as .lw-process or .lw-reviews (and their navbar links) for a shorter page.
  • The photos come from Unsplash. Replace them with your own office and attorney portraits.

Use cases

  • Law firms and solicitors: practice area tabs let visitors find the right legal specialty quickly
  • Personal injury and litigation attorneys: a case results grid and attorney profiles build trust with prospective clients
  • Free consultation lead generation: the consultation form with area combobox captures inquiries from one section
  • Boutique legal practices: a call-back dialog and live open status make contacting the office easy

Accessibility

A skip link targets #lw-main. Tabs use role="tab" and aria-selected. The Combobox uses aria-labelledby, star ratings have hidden text, and the toast uses role="status". A failed submit moves focus to the first invalid field. Focus outlines are visible, and motion stops under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). Coming from Bootstrap 5:

  • btn-solid theme-primary replaces per-color buttons.
  • Drawer replaces navbar-collapse, Menu replaces Dropdown, and Dialog replaces Modal.
  • Combobox replaces form-select.
  • data-bs-validate replaces needs-validation.

The alpha Combobox logs a harmless "more than one instance" console error. It has no reset method, so the chosen area stays selected after submit.

Law Firm Homepage Template at a glance

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

Questions about this template

Can I use the Law Firm Homepage Template 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 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@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">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Libre+Franklin:wght@400;500;600&display=swap">

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.

Law Firm Homepage Template – Bootstrap 6 home pages component screenshot
Law Firm Homepage Template · Bootstrap 6 Home Pages

More Home Pages

Restaurant Homepage Template – Bootstrap 6 home pages preview

Restaurant Homepage Template

Dark Bootstrap 6 restaurant homepage with a photo hero, live opening status, tabbed menu highlights, chef story, reviews, a datepicker reservation form and footer.

Music Band Homepage Template – Bootstrap 6 home pages preview

Music Band Homepage Template

Dark Bootstrap 6 music band homepage with a photo hero, relative tour dates with a region filter, album tracklists, video dialog, press quotes and a mailing list form.

Event Conference Homepage Template – Bootstrap 6 home pages preview

Event Conference Homepage Template

Dark Bootstrap 6 tech conference homepage template with a live countdown hero, speaker dialogs, two-day schedule tabs with track filters, ticket tiers with a team Range slider and FAQ.

Fitness Gym Homepage Template – Bootstrap 6 home pages preview

Fitness Gym Homepage Template

Dark Bootstrap 6 gym homepage with drawer navbar, photo hero, programs, a weekly class timetable, membership plans with a range-based recommender, coaches and a free-pass form.

Barbershop Homepage Template – Bootstrap 6 home pages preview

Barbershop Homepage Template

Dark Bootstrap 6 barbershop homepage with a drawer navbar, price-list tabs, barber cards, a booking form with Combobox and Datepicker, reviews, live opening hours and a footer.

Interior Design Homepage Template – Bootstrap 6 home pages preview

Interior Design Homepage Template

Warm Bootstrap 6 interior design homepage with arched photo hero, services, tabbed portfolio, before/after range slider, process accordion, reviews and a consultation form with datepicker.