Theme Preview
v1.0.0 FreePreview any installed theme without activating it, and share public live-demo links so visitors can browse the whole site in several themes at once.
by InsertCart

About Theme Preview
See how your next theme looks on the pages your readers already know. Theme Preview lets you browse your Radius CMS site in any installed theme and compare designs side by side before going live. If you sell themes, share one gallery link so buyers can explore each design on real content and go straight to its purchase page.
Documentation
Requires Radius CMS 1.3.0 or later with plugin support. Sign in as an administrator.
Open System → Plugins. Under Upload a plugin, choose the Theme Preview release ZIP and select Upload and install. For a manual installation, copy the plugin folder to plugins/theme-preview/ so it contains plugin.json directly.
Find Theme Preview on the Plugins screen and turn it on. The On badge confirms it is enabled. You can now preview installed themes privately. Public demos are off by default.
How to use Theme Preview
Compare themes privately
Open Appearance → Themes and select Preview on an installed theme. The preview opens in a new tab.
Browse to a page you want to compare. If you have several themes installed, use the switcher at the bottom to see that same page in another theme. To compare both designs side by side, duplicate the tab before switching.
Choose Exit preview to return to the same page in the live theme. When you are ready to use a previewed theme across the site, choose Activate and confirm.
Share live demos with visitors
Open Appearance → Theme preview and tick the themes you want visitors to explore. If you sell a theme, enter its product URL in Buy link.
Turn on Let anyone browse the ticked themes. To offer a gallery, leave List every public demo at the prefix address on. Select Save settings.
Choose Copy demo link beside a theme to share it directly, or copy the gallery URL under Share this page to share the whole collection. Open the link in a signed-out window to see what a visitor sees.
The default gallery address is /theme-demo. For example, if you make the theme with the slug zenith public, /theme-demo/zenith opens its homepage and /theme-demo/zenith/shop opens your shop in that theme. Demos use your live site, so actions such as adding an item to the cart work there too.
To withdraw one demo, untick its theme and save. To close all public demos, turn off Let anyone browse the ticked themes and save. Visitors following an old demo link for a still-installed theme are redirected to the corresponding page on the live site.
How it works
A request for /theme-demo/zenith/shop has the /theme-demo/zenith prefix removed before routing, and is rendered with Zenith for that one request. The site's own routes answer it, so every page works: the blog, the shop, search, the cart and checkout.
Links built by the CMS carry the prefix, so visitors stay in the demo. Links typed into content or menus (/about, https://yoursite.com/shop) are rewritten on the way out. Files such as images, stylesheets and downloads keep their real addresses.
Every demo page is sent with X-Robots-Tag: noindex, nofollow, a noindex robots meta tag, and a canonical link to the real page, so search engines index the site only once.
A theme that isn't public sends visitors to the same page on the real site. Administrators can preview every theme.
The admin panel and the API are never themed. Their addresses under the prefix redirect to the real ones.
With the page cache on, demo pages are cached separately from real ones.
Settings
Setting Default
Public themes none Which themes anyone may browse.
Let anyone browse off The master switch for public demos.
Buy link — Per theme. Shown on the bar and in the gallery.
Address prefix theme-demo Refused if it would hide a real page, the admin panel or the API.
Switcher bar on The bar at the bottom of each demo. Administrators always see it.
Gallery on The list of public demos at the prefix address.
The bar renders inside a shadow root, so a theme's CSS can't restyle it.
Uninstall
Switch it off, then choose Uninstall on System → Plugins. Its settings are stored on the plugin's own row and are removed along with it. Themes are not affected.
Version history
Radius sites are always offered the latest version. Older versions are kept here in case you need to roll back.
-
- Initial Release
Installed in under a minute
- Open your Radius admin
Go to Appearance → Browse themes. Every theme on this page is listed there too.
- Press Install
Radius downloads the theme and checks its fingerprint before a single file is unpacked.
- Activate and customise
Switch to it from Appearance → Themes. New versions show up there as one-click updates.
Building something with Radius?
The documentation covers installing Radius, customising a theme and building your own.
Radius documentation