Credits: Images from Unsplash and original stock photos
Description
Fantom is a fashion and lifestyle blog template built on Bootstrap 5. It has a script logo, a hot-pink menu bar, a four-slide post slider and white article cards that overlap their pictures, with a sidebar for the author, popular posts, categories and tags. The layout is responsive and mobile-ready. There are six pages: home, category, archive, a single blog post, contact and an elements page.
The home page opens with the slider and lists five articles, the category page mixes large and paired cards, and the archive shows eight posts in two columns with a search that filters them. The blog post page has an author box, previous and next links, five comments and a reply form, the contact page has a working contact form, and the elements page shows buttons, typography, a table, lists, forms and a photo gallery.
What’s new in 4.0
Rebuilt from the original Fantom design: Bootstrap 5.3.9 compiled from Sass with the Bootstrap 4 proportions, plain JavaScript with no jQuery, Swiper 14 for the post slider, PhotoSwipe for the gallery and Lucide icons. The earlier release used Bootstrap 4 and jQuery with Owl Carousel, Stellar, Nice Select and Simple Lightbox.
Lighter pages: all six pages together went from 18.3 MB and 339 requests to 4.8 MB and 255 requests, and the home page from 3.3 MB to 1.0 MB. Every photo has an AVIF version with the JPEG as the fallback, and the download is 5.1 MB instead of 11.7 MB.
No third-party requests: Roboto and Open Sans are self-hosted, and the Google Maps script and the Google Fonts calls of the earlier release are gone.
Accessibility and contrast: a skip link, one h1 per page, labelled form fields, a submenu that also opens from the keyboard, and a darker pink for white labels and for text on white.
Working forms: the contact, comment and sample forms send through php/send-email.php and the newsletter box through php/subscribe.php, with a hidden spam trap. Set the recipient in the PHP files before you publish. The sidebar search filters the archive page.
New demo content: a fashion and lifestyle journal with eighteen different posts and new photographs where the original ones were too small or showed visible brands.