Emergency situation

In case of emergencies or breakdowns, you can send an SMS to our emergency hotline

On-call phone (SMS only)

+45 29 70 15 95

Send an SMS with the following information:

  • Your name and webshop
  • Description of the problem
  • Your callback phone number

Notes: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Link to stylesheet and other files in your theme

Guide to linking to stylesheets, JavaScript and other files from your Shoporama theme.

Reading time: approx. {eight} minutes
Developer

When linking to stylesheets, JavaScript files, or images in your Shoporama theme, it’s important to use the correct paths. Here, we’ll walk you through how to do it correctly.

Filer-siden i Shoporama-admin med tabel over uploadede filer, deres URL'er, mappe-vælger, og upload-felt under Tema-menuen.
On the Files page under Theme, you’ll find the URL for each uploaded file, which you can link to from your theme. This is also where you upload new files and create folders.

Use $theme_url

The variable {$theme_url} points to your theme’s root folder. Use it to link to all files in your theme:

<!-- Stylesheet -->
<link rel="stylesheet" href="<{$theme_url}>/css/style.css">

<!-- JavaScript -->
<script src="<{$theme_url}>/js/main.js"></script>

<!-- Image -->
<img src="<{$theme_url}>/img/logo.png" alt="Logo">

Why $theme_url?

The reason for using {$theme_url} instead of a hardcoded path:

  • Portability — the theme works no matter where it’s installed
  • CDN support — the URL can automatically point to a CDN
  • Flexibility — the theme folder can be moved without changing the code

Other useful URL variables

Variable Description
{$theme_url}The theme's root folder (for CSS, JS, images)
{$baseurl}The store's full URL (e.g., https://minshop.dk)
{$webshop}The webshop object with all settings

Important

Never use absolute paths such as /user_templates/4/mittema/css/style.css. This will break if the theme is moved or installed on a different store.

Do you need help with theme development? Contact us at support@shoporama.dk.