Theme Assets

The assets directory is rendered as the assets folder in the theme editor. It contains all the assets used in the theme, including images, stylesheets, and javascript files.

asset_url

The asset_url returns the URL of a file in the "assets" folder of a theme.

{{ 'shop.css' | asset_url }}

https://s3-ap-southeast-1.amazonaws.com/easystore.co/101502/themes/28/assets/shop.css

global_asset_url

The global_asset_url returns the URL of a global asset. Global assets are kept in a directory on EasyStore's servers. Using global assets can improve the load times of your pages.

{{ 'shop.css' | global_asset_url | script_tag }}

<script src="/assets/prototype.js?1" type="text/javascript"></script>

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale