Change footer background image to SVG

Solved
Highlighted
Tourist
4 0 1

Hey everyone!

 

I've figured out how to change the footer background image. What I'm trying to do now is use an SVG file instead of a regular image but can't figure this out. 

 

I've tried:

 

background-image: {{ 'footer.svg' | asset_url }};

and

background-image: url('footer.svg');

 

Is there something I'm missing? Would really appreciate any help!

0 Likes

Success.

Shopify Expert
153 37 58

@spencer-

 

Your first try was close!

 

Try this: 

 

background-image: url( '{{ 'footer.svg' | asset_url }}' );
Did I provide you with a working solution? Give me an Approved Solution!

Likes are appreciated as well :)
1 Like
Tourist
4 0 1

Hey Shay,

 

Wow, thanks for your help again - this worked perfect!

1 Like