Skip to content

News Magazine Homepage Template

Newspaper-style Bootstrap 6 news magazine homepage with a masthead, sections drawer, breaking ticker, three-column front page, desk tabs, opinion, reader trust and subscription plans.

Also known as: newspaper website design, online magazine landing page, news site layout, daily news portal homepage

News Magazine Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A newspaper-style news magazine homepage built with Bootstrap 6 for a fictional daily called The Northgate Herald. It has a classic masthead, a three-column front page, desk tabs, opinion columns, reader proof and a subscription section.

How it works

Everything lives inside .nh-page, which pins data-bs-theme="light" and re-maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-primary-contrast, --bs-control-checked-bg and friends) to the Herald red, so every btn-solid theme-primary, badge and checkbox follows the brand.

  • Top bar and masthead: .nh-topbar shows today's date, written by script.js with toLocaleDateString(). "Search" opens the search dialog.
  • Navbar: navbar lg:navbar-expand with <dialog class="drawer drawer-start"> holding the section links. Below 1024px the toggler opens the drawer; wider, the links sit in a centred row. "More" opens a .menu with menu-item-icon. The script syncs aria-expanded on the toggler and closes the drawer after a link is chosen.
  • Front page: .nh-front-grid is one column on mobile (lead story first) and a ruled 1 : 2 : 1 grid from 1024px: briefs, .nh-lead with a photo, and a numbered .nh-most list.
  • From our desks: nav nav-underline tabs (data-bs-toggle="tab") switch four .tab-pane panels of .nh-story cards in a grid md:grid-cols-3 layout.
  • Opinion and trust: columnist cards with avatar avatar-lg, then a dark .nh-trust band with a <dl> of stats and reader quotes.
  • Subscribe: a btn-group of btn-check radios swaps prices from data-nh-monthly / data-nh-yearly and announces the change in a live region. The Morning Brief form uses data-bs-validate, a Combobox for the edition and a .check box; submit is simulated and opens .nh-toast with Toast.getOrCreateInstance().
  • Search: <dialog class="dialog"> with a form-adorn field that filters the trending list as you type.

Customization

  • Change --nh-red, --nh-paper and --nh-ink on .nh-page in style.css; update the --bs-primary-* overrides beside them.
  • Swap fonts via --nh-serif and --nh-sans.
  • Edit data-nh-monthly and data-nh-yearly on each .nh-price to set your prices.
  • Replace the setTimeout in the .nh-form submit handler with fetch() to your newsletter endpoint.
  • In the search form submit handler, redirect to your real search page.
  • Add or remove .tab-pane panels (and their tab buttons) to match your desks.
  • Delete .nh-opinion or .nh-trust for a shorter page.

The photos come from Unsplash; replace them with your own images. The footer credit links to WebDevSnippets; you can keep it or remove it.

Use cases

  • Newspapers and local dailies: a masthead, ticker and three-column front page mimic classic print layout
  • News desks: tabs switch between sections like world, business and sport with story cards
  • Subscriptions: monthly and yearly price toggle plus a Morning Brief signup form grow paying readers
  • Reader search: a search dialog filters trending stories as the visitor types

Accessibility

A skip link jumps to #nh-main; The drawer and search dialog are native <dialog> elements with labelled titles. Tabs use role="tab" and aria-selected, the ticker is a labelled region, price changes are announced through aria-live, and the toast uses role="status". Focus rings use the brand red, and smooth scrolling is turned off under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). lg:navbar-expand with a Drawer replaces navbar-expand-lg and navbar-collapse, Menu replaces Dropdown, <dialog class="dialog"> replaces Modal, btn-solid theme-primary replaces btn-primary, form-field and .check replace mb-3 and form-check, and Combobox is new in v6. The Combobox logs a harmless "more than one instance" message in alpha.1, and the chosen edition stays after reset.

News Magazine 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 News Magazine 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=Libre+Franklin:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,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.

News Magazine Homepage Template – free Bootstrap 6 home page template
News Magazine Homepage Template · free Bootstrap 6 home page template

More Home Pages

Restaurant Homepage Template – free Bootstrap 6 home page template

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 – free Bootstrap 6 home page template

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 – free Bootstrap 6 home page template

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 – free Bootstrap 6 home page template

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 – free Bootstrap 6 home page template

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 – free Bootstrap 6 home page template

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.