Get the url from theme asset SCSS

How can I get the url from my uploaded asset?
If I want to use this image inside my css or html?
for example inside my

<img src=" what will the link be "/> 
.logo {
     background-image: url( what will the link be);


1 Like

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)


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.