Get the url from theme asset SCSS

There’s some guidance here: Include assets (e.g. images, fonts) in themes and components

So in your case, you’d want to do:

.logo {
     background-image: url($essential-logo);
}

You can’t access the asset directly in HTML, so if you don’t know how to use javascript or handlebars you might want to use it as a CSS background image (this is also covered in the link I shared above)

4 Likes