Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: 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 stylesheets and other files in your theme

How to link to stylesheets, JavaScript, images, and other files from your Shoporama theme using the $theme_url variable.

Reading time: about 3 minutes
Developer

When you link to stylesheets, JavaScript files, or images in your Shoporama theme, it is important to use the correct paths. Here is how to do it right.

The Files page in the Shoporama admin with a table of uploaded files, their URLs, a folder picker, and an upload field under the Theme menu.
On the Files page under Theme, you find the URL of 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 the root folder of your theme. 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 reasons to use {$theme_url} instead of a hardcoded path:

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

Other useful URL variables

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

Important

Never use absolute paths such as /user_templates/4/mytheme/css/style.css. They will break if the theme is moved or installed in another store.

Need help with theme development? Contact us at support@shoporama.dk.