Glance

A classifieds theme for comparing ads: read each ad in a side panel without losing your place in the list.

Version
1.1.0
Updated
24 October 2026
Needs
ShopClass 7.0 or later
PHP
8.0 or later
Tested with
ShopClass 7.1
Price
Free
Licence
GPL-3.0+
Downloads
37
Made by
Mindstellar
The Glance theme

A Classifieds-only theme for comparing. Scan a list of ads and read each one in a side panel without losing your place.

Requirements

  • ShopClass 7.0.0 or later
  • PHP 8.0 or later

Install

  • Upload the release zip under Settings → Appearance, or
  • Put this folder at oc-content/themes/glance.

Then activate Glance under Settings → Appearance.

Settings

Under Appearance → Glance:

  • Logo (about 36 px tall)
  • Accent colour
  • List density: comfortable or compact
  • Footer note

Features

  • Ad list with a reading panel. Arrow keys move, Enter opens, Esc closes. Each ad keeps its real URL.
  • Phone: each ad opens in a bottom sheet.
  • Works without JavaScript.
  • Saved ads are kept on the device.
  • Light, dark or auto colour scheme.
  • Self-hosted font.
  • JSON-LD on ad pages.
  • Minified CSS and JS in releases.

Hooks and filters

Added by the theme (name starting glance_):

  • glance_item_booking (action): output slot for a booking widget on the ad page.
  • glance_messages_url (filter): inbox URL on a core without messaging. Return empty to hide the link.
  • glance_unread_count (filter): unread count for that link's badge.

Fired by the theme (core hooks):

  • search_form: extra search form fields.
  • search_ads_listing_top: top of home and search results.
  • search_ads_listing_medium: between search results, every 6 ads.
  • home_before_listings, home_after_listings: around the home list.
  • item_sidebar: ad page sidebar.
  • item_meta: ad page meta.
  • item_detail: ad page body.
  • item_before_related, item_after_related: around related ads.
  • item_contact_form: inside the seller contact form.
  • footer: footer area.

Server tips

On Apache, the theme's .htaccess turns on long caching and compression for its CSS, JS and fonts. Nginx ignores it; add this to your server block instead:

gzip on;
gzip_types text/css application/javascript text/javascript image/svg+xml;
location ~* ^/oc-content/themes/glance/.+\.(css|js|woff2|svg|png|webp)$ {
    expires 1y;
    add_header Cache-Control "public, immutable";
}

Found a problem with Glance? Open an issue on GitHub.

More themes

  • StorefrontThe bundled default ShopClass theme since 6.0.0: a modern, responsive, vanilla-JS classifieds front end with automatic RTL and WCAG 2.1 AA contrast.FreeGPL-3.0+v2.2.0Live preview on the demo
  • FolioA typography-first ShopClass theme built on native HTML5 elements: one hand-written stylesheet, eight lines of JavaScript, no build step.FreeGPL-3.0+v0.6.0Live preview on the demo

All themes