How can I change the background image on Dawn 4.0.0?

Hi,

im trying to change my background image on Dawn 4.0.0 ive tried a few tutorials they havnt worked.

i have the image in my assests and i want it to fill the whole background and not repeat or tile

Please help :slightly_smiling_face:

Hi @GRNorthwich

Please share:

  • your store URL;
  • page URL with the issue you mention;
  • storefront password (if your store has one).

If the store is not online yet, please go to Theme > Actions > Preview > Click the Share Preview Button at the bottom of the page.

  • On this bar, click on the button Share Preview > Copy Link.
    Note: Make sure you click on this button, do not share the URL on the top of your page because it won’t work.

When I have this ill be able to best help you. You can also send me a DM if that is easier.

Kind regards,

Jake

Welcome to shopify community.

Please share your store URL and if your store is password protected then please provide password too.

Thank you.

1 Like

Hi @GRNorthwich ,

Go to layout > theme.liquid file, find ‘endstyle’ and add code here:

Code:

#MainContent{
	background-image: url("url image");
	background-repeat: no-repeat;
	background-size: cover;
}

with the url image uploaded in Assets and get it: {{ ‘image.png’ | asset_url }}

Hope it helps!

Hi i have tried adding the code and its still just the block colour am i doing something wrong?

Hi @GRNorthwich ,

Please change url:

background-image: url(“{{ ‘Burst-Purple-aq8sdb.png’ | asset_url }}”);

Hope it helps!

Hi this didnt seem to work :disappointed_face:

Hi @GRNorthwich

If you can change {% endstyle %} to

Your opening tag should also be not sure if you had put {% style %}

Should look like this


Changed both of these and it hasnt added the background image :disappointed_face:

Hi @GRNorthwich ,

Please add code here:

Code:


If it still doesn’t work, please send me the site link, I will check it for you

Hi! Thanks for your ongoing help!

still not working

www.geekretreatnorthwich.com

Hi @GRNorthwich ,

Please remove my previous tutorial code and add following code, it will work fine:


Hope it helps!

Hi This just removed the background altogether :disappointed_face:

it did it for background on some of the bodys we are making progress!

what i want is the image to get everything header footer etc

Hi @GRNorthwich ,

This is not what you want?

yes!

this is how its showing on my end though

when i have this code

this is what i see

Hi @GRNorthwich ,

On my previous answer you need to remove the code I instructed first, it is the current code you added and replace it with the following code:


It should work like the screenshot I sent