Learn

theme

Get paths to theme files.

{{ theme:partial }}

Display a partial from within the currently-selected theme’s partials folder.

Sample Usage

<h2>Blog categories</h2>

{{ theme:partial src="categories" }}

This tag will be replaced by the rendered code from within the currently-selected theme’s partials/categories.html file.

Parameters

This tag accepts the following parameters:

  • srcrequired — the name of the file to pull in, file extension optional

{{ theme:asset }}

Grab the full web-path to an asset file within the currently-selected theme’s folder.

Sample Usage

{{ theme:asset src="file.ext" }}

Parameters

This tag accepts the following parameters:

  • srcrequired — the name of the asset to look up

{{ theme:js }}

Grab the full web-path to a JavaScript file within the currently-selected theme’s js folder.

Sample Usage

<script src="{{ theme:js src="jquery" }}"></script>

Parameters

This tag accepts the following parameters:

  • src — the name of the script file to look up, file extension optional; uses the name of the theme by default

{{ theme:css }}

Grab the full web-path to a stylesheet within the currently-selected theme’s css folder.

Sample Usage

<link href="{{ theme:css src="print" }}">

Parameters

This tag accepts the following parameters:

  • srcrequired — the name of the stylesheet file to look up, file extension optional; uses the name of the theme by default

{{ theme:img }}

Grab the full web-path to an image within the currently-selected theme’s img folder.

Sample Usage

<img src="{{ theme:img src="logo.png" }}" alt="Logo">

Parameters

This tag accepts the following parameters:

  • srcrequired — the name of the image file to look up, file extension is required

This article was last updated on August 6th, 2015. Find an error? Please let us know!

Choose your site license.

Not sure which is right for your project?
We can help you choose correctly.

  • Personal
  • $29 per site
  • Personal use only
  • All features included
  • Unlimited dev sites
  • Forum-based support
  • Buy Now
  • Professional
  • $99 per site
  • Companies & Organizations
  • All features included
  • Unlimited dev sites
  • Forum-based support
  • Buy Now
  • Unlimited
  • Starting at $199 per month
  • Companies & Organizations
  • Includes unlimited Raven + Bloodhound
  • Unlimited sites
  • Forum-based support
  • Sign Up