CSS
Created 8 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  —  8 years ago Best Answer

Try something like this:

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

http://d.pr/n/iZN9

cchinopoulos  —  8 years ago

Great! Thanks!

ryanthompson  —  8 years ago

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

Just use markdown syntax.

carsonsuite  —  8 years ago

// Sorry 🙍