CSS
Created 7 years ago by cchinopoulos

{{ asset_add("theme.css", "theme::css/theme1.css") }} {{ asset_add("theme.css", "theme::css/theme2.css") }} {{ asset_style("theme.css") }}

I'm missing something here!!! Images used on css file (background-image:url(img/sample.png); not showing on rendered theme.

carsonsuite  —  7 years ago Best Answer

Try something like this:

background-image: url("{{ image_url('theme::img/sample.png') }}");

http://d.pr/n/iZN9

cchinopoulos  —  7 years ago

Great! Thanks!

ryanthompson  —  7 years ago

It's save to put {{ code }} here @carsonsuite

Just use markdown syntax.

carsonsuite  —  7 years ago

// Sorry 🙍