Putting a patterned background behind my featured collection on home page

hello

how do I put a patterned background behind my featured collection on my website homepage instead of just a colour background??

thanks Meg

Hi Lockett_pegg,

Do you have a patterned background image that you want to use?

In that case follow the below instructions and go to:

Settings > Files > Upload files

Upload your image and after the image is uploaded there is a Copy link icon which would copy the URL of the image.

Then head over to your theme.liquid file.

It’s under Online Store > Themes > Edit code > theme.liquid

Right above the paste in the following CSS:

{% if template.name == "index" %} 
    
{% endif %}