The default Shopclass theme for classifieds sites. It has a card-grid layout, three colour palettes, light and dark schemes, and plain JavaScript with no jQuery.
- Shopclass 7.0.0 or later. Sites on an older core stay on Storefront 1.3.x.
- PHP 8.0 or later
- No plugins needed.
Shopclass bundles Storefront and activates it on a fresh install. To install it yourself:
- Go to Appearance → Manage themes.
- Find Storefront in Browse, or upload
storefront_X.Y.Z.zipfrom the releases. - Click Install, then Activate.
- Go to Appearance → Storefront: Brand:
- Site name: the wordmark shown when no logo is set.
- Logo: SVG, PNG or JPG. An SVG is cleaned on upload and follows the text colour, so one file works in light and dark. PNG and JPG are saved to
oc-content/uploads/. - Compact logo (optional): a small mark for phones. The main logo shows if it is empty.
- Go to Appearance → Storefront: Settings:
- Colour palette: Teal, Indigo or Violet.
- Colour scheme: Light, Dark or Auto (follow device).
- Home / Hero: Headline and Tagline, plus switches for the decorative graphic, the popular-category chips and the featured listings row.
- Search & Location: Post & edit form location (autocomplete or dropdowns), Search page location (country, region and city; region and city; or autocomplete), Search box placeholder and Default results view (gallery or list).
- Footer & Social: Footer tagline, links for Facebook, X, Instagram, YouTube and LinkedIn, and the "Powered by Shopclass" credit.
- Press Save. An empty text field restores its default.
- Every palette and scheme pair meets WCAG 2.1 AA contrast.
- Right-to-left locales switch the layout by themselves.
- Featured listings on the home page, related listings and custom fields on the item page.
- Widget zones:
header,footeranditem_sidebar. - Core draws the account, sign-in, profile, contact and credits pages inside Storefront's header and footer. The theme styles them through hooks in
inc/core-pages.php.
Settings are stored as theme preferences, so they survive updates. For deeper changes, edit the design tokens at the top of css/storefront.css (--color-*, --font-*, --space-*, --radius-*, --shadow-*) or use a child theme.
-
Hooks fired:
Hook Where header,footerEnd of <head>, before</body>before-main,after-mainAround the main content search_ads_listing_topTop of home and search results search_ads_listing_mediumEvery 6 search results home_before_featured,home_after_featuredAround the featured row home_before_listings,home_after_listingsAround the latest-listings row item_meta,item_detailItem page body item_before_related,item_after_relatedAround the related row item_sidebarItem page aside item_contact_formInside the seller contact form -
css/andjs/run as they are.npm installthennpm run buildwrites the*.min.*files and compileslanguages/*/theme.mo. Both are gitignored. -
Strings use the text domain
storefront. Runnpm run i18nto updatelanguages/storefront.potandlanguages/en_US/theme.po. -
To work on the theme, clone it and symlink it into
oc-content/themes/storefront. -
A
vX.Y.Ztag runs.github/workflows/release.yml, which builds and publishesstorefront_X.Y.Z.zip.
Report problems at github.com/mindstellar/theme-storefront/issues.
GPL-3.0-or-later. Copyright Navjot Tomer (Mindstellar) and contributors.