ATTENTION: This article is no longer up to date, and should be automatically redirecting you to a more current article in our Developer-specific documentation. If for some reason you are not redirected, please use this link to see the most recent version of this article.
As of V.1.3.0, you can upload and use assets (images, fonts, etc.) in your theme.
Using CSS Uploaded as an Asset
Using Font Files Uploaded as an Asset
Uploading Assets
To upload assets, open up your theme and select Assets Add New Asset.
Select the files for your assets and hit Upload.
Once the upload is completed, you'll see the files listed in the Assets folder of your theme. They are now ready to use!
Using Assets
To use assets within the html of your theme, reference the asset using the following format:
HTML{{ 'ASSET NAME' | theme_asset_url }}
For example, for the image asset uploaded above, I would add this image to the page using the code below:
HTML<img src="{{ 'cute-golden-retriever-happy-puppies.png' | theme_asset_url }}">
Using CSS Uploaded as an Asset
To use a CSS file that you've uploaded as an asset, add this code into your Header file.
HTML<link rel="stylesheet" type="text/css" href="{{ 'ASSET NAME' | theme_asset_url }}">
For example, if you've uploaded a stylesheet called thinkific.css into your Assets folder:
HTML<link rel="stylesheet" type="text/css" href="{{ 'thinkific.css' | theme_asset_url }}">
Using Font Files Uploaded as an Asset
If you have a custom font that you would like to add to your Thinkific site, check out the following instructions. This is not required for Google fonts. See the simplified process for Google fonts below.
- Download your desired font family
- Extract the files to your computer from the .zip file.
- Find the standard font in the family (e.g. AbrilFatface-Regular.ttf)
- Go to Design Your Site
- Click Theme Library
- Click on the ellipses (⋮) next to the Build button your Published Theme
- Click Edit Code
- Expand the folder called Assets
- Click Add New Asset and upload your font file(s)
- Go to the Styles folder
- Import the font through the _overrides.scss file
Example:@font-face {
font-family: AbrilFatface-Regular;
src: url({{ 'AbrilFatface-Regular.ttf' | theme_asset_url }});
} - Open the manifest.json file
- Add the following to all instances of the list of available fonts as such:
{
"value": "Font-Name",
"label": "Font Name",
"group": "Sans-serif or serif"
}
Example:{
"value": "AbrilFatface-Regular",
"label": "AbrilFatface Regular",
"group": "Sans-serif"
}
- Save manifest.json
- Go to Design Your Site
- Click Site Builder
- Go to the Theme Settings tab
- Change fonts to your custom font
- Save your changes
Using Google Fonts
If you are using a Google font, you don't need to download the file and can simply reference it in the manifest.json file.
- Go to Google Fonts here: https://fonts.google.com/
- Locate your desired font and click on it to view details
- On your desired style, click Select this style
- Click Embed
- In the CSS view, you'll see the name of the font that you'll need to reference
- Return to your Thinkific site
- Go to Design Your Site
- Go to Theme Library
- Click on the ellipses (⋮) next to the Build button your Published Theme
- Click Edit Code
- Open the manifest.json file
- Add the following to all instances of the list of available fonts as such:
{
"value": "Font-Name",
"label": "Font Name",
"group": "Sans-serif or serif"
}
Example:{
"value": "Barlow-Regular",
"label": "Barlow",
"group": "Sans-serif"
}
- Save manifest.json
- Go to Design Your Site
- Select Site Builder
- Go to the Theme Settings tab
- Change fonts to your custom font
- Save your changes
For help with custom fonts on Legacy or non-Site Builder themes, you can check out this article here.
Important things to note:
The following asset types are supported:
- text files
- javascript files
- css files
- svg, jpeg, png, tiff, bitmap and gif images
- ttf, woff, woff2 and eot font files
- json files
Videos are not supported for a number of reasons, but mostly due to them not being optimized for various devices.
Imported files cannot be greater than 25 MB
Assets will be overwritten if an asset with the same name is uploaded. Assets can be renamed if necessary, by double-clicking on them in the Assets folder.
They will also not carry over if you update or change your theme - you will have to re-upload them to your current active Theme and add your code back in. If you need more help with Custom Themes please see Custom Themes (For Developers).