Themes: create and edit your own theme templates in Smarty 2
The Themes page lets you create your own versions of individual files in your theme and split test them. See how it works, and why it is only available on stores running Smarty 2.
Themes is one of the oldest pages in the Shoporama admin. This is where you create your own versions of individual files in your theme and let them override the matching files in the design you already use. It is also Shoporama's original split testing tool.
Important first: the page only works if your store runs Smarty 2. If your store runs Smarty 4, the menu item does not exist at all, and the page has no effect. In that case, skip straight to Running Smarty 4? below.
How to check whether your store runs Smarty 2 or Smarty 4
Smarty is the template language your theme is written in, meaning the code that pulls product names, prices, and images into the pages your customers see. There are two versions: the old Smarty 2 and the current Smarty 4.
- Click Design in the menu on the left, and choose Search and display.
- Find the Smarty version field in the Theme card. It shows either 2 or 4 (may not work with old templates).
If the field is grayed out, it says Controlled by the theme (Smarty 4), and the theme decides the version itself. If you want to switch from 2 to 4, read the guide to switching to Smarty 4 first. If you run Smarty 2, the Themes page also shows You are using Smarty 2 at the top.
Running Smarty 4? Then you need to go somewhere else
On stores with Smarty 4, Themes has been removed from the menu on purpose. Smarty 4 only reads theme files from the store's theme folder, so a theme created here would never be used anyway. This is where you now do what you used to do on this page:
- Design → Code editor to edit the HTML, CSS, and JavaScript files in your own themes. If you use one of Shoporama's free themes, make a copy first, see Make a copy of one of Shoporama's themes below. See the code editor guide.
- Design → Page designer to build pages from ready-made blocks, with no code at all.
- Design → Split test to test two versions of a page against each other. The new split test works together with the Page designer, distributes traffic by weights, and can stop itself when the result is clear.
- Design → Theme settings for colors, logos, and the options the theme itself provides. See the theme settings guide.
- Design → Stylesheet for your own CSS adjustments, and Design → Texts for the fixed texts.
- Design → Theme to choose a theme, make a copy of Shoporama's themes, and preview, copy, and delete your own themes. See the next section.
Custom themes: preview, copy, and delete
Under Design → Theme, your own themes are listed under the heading Custom themes. These are the themes you or your developer uploaded, and the copies you or Claude made. If the theme was made as a copy in the admin or by Claude, a line under the name says what it is a copy of and when it was made, for example "Copy of Montana from 24.11.2026" (not for older copies). A custom theme that is not active has three buttons in addition to Select:
- Preview opens the store with the theme in a new tab without making the theme active. Only the browser that opens the link sees the theme, and your customers still see the active theme. A bar at the top of the page has the link Close preview.
- The copy button (two overlapping pages) makes a new copy of the theme that you can edit without touching what your customers see. It is also shown next to the active theme.
- The trash can deletes the theme after a question like "Delete the theme Montana-v2? This action cannot be undone here, but support can recover it within 30 days." The active theme has no trash can, and a theme that is selected for a country or is a variant in a running split test cannot be deleted either.

Make a copy of one of Shoporama's themes
If you want to edit the code in one of Shoporama's free themes, you first make your own copy of it. This requires Smarty 4 and the Pro pricing plan:
- Click the copy button next to the theme under Free themes, next to Select and See demo.
- Change the Name of the copy if you like. An available name is already filled in, for example "Montana-kopi". Use a-z, numbers, hyphens, and underscores, with no spaces.
- Click Make a copy. The copy is now listed under Custom themes, and the top of the page shows "The copy Montana-kopi has been created." with links to Open in Code editor and Preview the copy.

The copy does not become active, so your customers do not see it until you click Select and Save, or Enable next to the copy in the Code editor. It also does not receive the fixes and new features we later add to the original, and because the standard themes' CSS is prebuilt, new CSS classes, for example from Tailwind, do not work on their own in the copy. Use the classes the theme already uses, or add your own CSS under Design → Stylesheet. If Theme settings, Stylesheet, or the Page designer is enough for you, you keep the updates. You can also make the copy from the Code editor, see the code editor guide.
Claude can also make a copy of one of Shoporama's standard themes or of one of your own themes, build changes in the copy, and give you a link to the preview. Themes from the Theme shop cannot be copied, and you can have at most 10 custom themes. Read more in Edit your theme with Claude.
What "theme" means here, and where to find the page
The word theme is used in two places in the admin, and they are not the same thing. Design → Theme is your actual design, meaning all the files your store is built from, and the overview of themes on Shoporama gives you the full picture. Webshop → Themes, on the other hand, is a small collection of individual files on top of the design. Only the files you add yourself replace the theme's files, and everything else comes from your regular theme.
The files are stored in the store's database, not as actual files, so they are not overwritten the day the theme's files are uploaded again. That is exactly what makes the page useful: you can try out a change in one place without touching the rest of the design.
You find the page under Webshop → Themes, just below robots.txt and llms.txt. The overview has three columns: Name is your own name for the theme, In use shows Yes for the active theme and No for the rest, and the pencil icon opens the theme's file list. At the bottom is the Create theme button.
How to create a theme
- Click Create theme. The page is called New theme.
- Fill in Name. Choose something you will recognize in three months, for example "Buy button test".
- If you want to start from an existing file, select it in Or copy from your own theme (optional). The list shows the theme folders you or your developer uploaded, and email files are marked with (email).
- Click Create. You land on the theme's file list right away.
The Copy from theme (optional) field just above is empty for all stores today, and that is not something you are doing wrong. If you have not uploaded theme files yourself, just create the theme empty and add the files afterward.
The theme's file list
The file list is called Templates. At the top, you can change the theme's Name, and below that is the table of files:
- File Name is the field that matters. The file overrides the file in your theme with exactly the same name, for example add_to_basket.html. If you enter a name your theme does not use, nothing happens.
- Name is your own label, for example "Original" or "Version B". It is only shown in the admin.
- Locked shows whether the file is locked as the version everyone should see. More about it in the section on split testing.
- Changed is the date and time of the last saved change.
- The pencil icon on the far right opens the file for editing, and the checkbox on the far left is used by the copy and delete buttons below.
The buttons at the bottom: Save saves the name and goes back to the overview. Create a new file in the theme opens the page for a new file. Copy the selected files makes a copy of each selected file with the same file name and name as the original. Delete the selected files deletes the selected files after an "Are you sure?". Use this theme activates the theme and is only shown when it is not already in use. Delete the entire theme removes the theme and all its files.
An important detail: the checkboxes are used by several buttons. If you have checked a file and click Save or Use this theme, the file is copied too. So clear the checkboxes when you are done copying, or the list fills up with duplicates.
Remember that a theme does nothing until you have clicked Use this theme. That is the classic mistake. It must say Yes in the In use column. There can only be one active theme at a time, and the old one stays in the list, so you can switch back.
Create and edit a file
The Create new file in theme page has the fields File Name and Name, plus the same two copy lists as when you create the theme. If you leave File Name empty, the file is created as noname.html with the name "No name".
The actual editing takes place on the Edit template page, where you change File Name, Name, and the large HTML field. Save and close saves and goes back to the file list, Save and keep editing stays on the page, and Delete removes the file after a confirmation.
There is no undo and no version history. When you save, the old version is gone, so copy the content into a text file before you make changes. The change takes effect immediately. If you cannot see it, try a hard reload with Cmd+Shift+R or Ctrl+Shift+R. On a live store, finished pages can also be cached for up to four hours.
Split testing: two versions of the same file
This is where the page really earns its keep. If you add two or more files with the same file name to the same theme, the store splits visitors between them. The choice is remembered for a week, so an individual visitor does not see the button change along the way.
- Find the file that contains what you want to test. If it is the text on the buy button, it is typically add_to_basket.html.
- Add the original to the theme, and name it "Original".
- Check it, click Copy the selected files, and name the copy "Version B".
- Open Version B, change the one thing you want to test, and save. If you change several things, you will not know what worked.
- Click Use this theme, and let the test run until you have enough orders to draw a conclusion with confidence.
The Locked column marks the version everyone should see, regardless of the split. In the current admin, there is no field to turn it on, and when you save a file, it is set to No. So to stop a test and keep the winner, simply delete the loser.
If you have few visitors, it takes a long time to get a result you can trust, and your time is better spent getting more traffic. The cached version of the pages can also make the split less precise. More in the guide to split testing in Shoporama.
For the technically minded
The files are Smarty templates, not plain HTML. At Shoporama, Smarty is written with angle brackets around the curly braces:
<{$product->getName()}>
<{if $product->getPrice()}>
<p><{$product->getPrice()}> kr.</p>
<{/if}>
Every <{if}> needs a <{/if}>. If you forget one, you typically get an error page on the entire store. Variables and methods are described in Variables in a Shoporama theme. Three differences between the two Smarty versions are worth knowing:
- The files are organized differently. In a Smarty 2 theme, the templates sit loose in the theme folder, for example invoice.html. In a Smarty 4 theme, they are in subfolders, for example templates/mails/invoice.html.
- Smarty 4 is stricter. That is why the dropdown literally says "may not work with old templates". Old templates can contain syntax that has to be fixed first.
- Database files only exist in Smarty 2. The Themes page lets its files take precedence over the theme's actual files. That mechanism does not exist in Smarty 4, where all new features are built.
Frequently asked questions
I cannot find Themes in my menu at all. Where is it?
Then your store runs Smarty 4, and the item is hidden on purpose. Check it under Design → Search and display in the Smarty version field. If you need to edit the theme's files, use Design → Code editor instead. If you use one of Shoporama's free themes, make a copy of it first under Design → Theme.
Can I see a new theme before my customers do?
Yes, if the theme is listed under Custom themes on Design → Theme, and your store runs Smarty 4 and is on the Pro pricing plan. Click Preview next to the theme, and the store opens with the theme in a new tab, while your customers still see the active theme. The Themes page for Smarty 2 has no preview, and there a file only takes effect once the theme is in use.
Will I delete my actual design if I delete a theme here?
No. A theme here only contains the individual files you added yourself. If you delete it, the store goes back to using the matching files from your regular theme, and the design itself is untouched.
Why is the "Copy from theme (optional)" list empty?
That box no longer shows any content, so skip it. If you have had theme files uploaded, you find them in the box below, "Or copy from your own theme (optional)".
I suddenly got two identical files in the list. What happened?
The checkboxes are used by several buttons. If a file is checked and you click Save or Use this theme, the file is copied, exactly as if you had clicked Copy the selected files. Delete the duplicate, and clear the checkboxes.
Can I undo a change the next day?
No, previous versions are not saved. Always copy the content into a text file before you make changes. If the damage is done and you have no copy, delete the file from the theme, and the store uses the original again.
Do my changes survive a theme update?
Yes. The files are not in the theme folder, so they are not overwritten when the theme's files are uploaded again. On the other hand, they can cause problems if the new theme has changed the file fundamentally, so check them after a major update.
Can I roll out the same change to all my stores at once?
No. Themes and files belong to the store you have selected in the admin, so you have to repeat it in each store. If you have many stores on the same theme, it is more sustainable to get the change into the theme itself.
I am testing my split test, but I always see the same version. Is it broken?
Probably not. Your version is remembered for a week, so you see the same one until you clear your cookies or open the store in a private window.
I edited a file, but nothing happens in the store. What now?
Check in this order: does the In use column say Yes, is the file name spelled exactly like the file in your theme, and have you tried a hard reload? If you are still unsure, write to support@shoporama.dk with the name of the file.
Related articles
How to upgrade your theme to Smarty 4
Upgrade your Shoporama store from Smarty 2 to Smarty 4. Smarty 4 is faster, more secure, and runs on PHP 8.
Code editor: edit theme files directly in admin
The code editor lets you edit your theme's HTML, CSS, and JavaScript files directly in admin. See which theme your customers see, make a copy of a...
Theme settings: how to customize your Shoporama theme
Theme settings are your theme's own control panel in Shoporama. Change colors, texts, images, and on/off features without code, and learn what the...
Shoporama themes: an overview of all free store themes
A complete overview of all free themes in Shoporama: Delaware, DelawareDK, California, Alaska 2, Washington, Montana, and the classic Smarty 2...
Split testing theme files (legacy feature for Smarty 2)
The old split test of individual theme files is only available for stores on Smarty 2. For new tests, use Split test under Design.
Smarty template variables in Shoporama themes
Overview of the global and page-specific Smarty variables available in Shoporama themes, such as the cart, customer, campaigns, products, and...
Edit your theme with Claude: test changes in a copy before going live
Ask Claude to make a copy of your theme and build the change, for example a stock badge on your products. You see the result in a preview your...
Related features
Accordion layout for theme settings in Shoporama
Learn how to use the accordion layout in theme_settings.json to organize Shoporama theme settings with search, collapsible sections, and localStorage.
Split Blocks: place Page designer blocks above and below the page content
Learn to use split_blocks in theme_settings.json to split page builder blocks into two zones: above and below the main content. A guide for theme...
Online store theme
A theme controls how your online store looks. Learn about store themes, design, customization, and responsive templates for desktop, tablet, and...
Full design freedom: your design, your rules
Design your online store freely with full access to HTML, CSS, and templates. Use ready-made themes, the drag-and-drop Page designer, or build from...