How to add header image to brooklyn theme?

I am trying to add a background image to my header. I am using the Brooklyn theme.

Please help, thank you!

Hi @William46

If you want to change the image from the admin, then Have to create schema for this.

Then using css have to set the design.

Hi @William46

You can add this CSS code to theme.liquid file before tag in Online store > Themes > Edit code


Hi Dan,

Thanks for your reply! It didn’t work.

Hi @William46

Cold you show me the code that you added?

Hi Laddisahsi, thanks for your reply!

Hi Dan,

Here it is.

Your code missing . before “header-wrapper”, please correct it to make it works

Hi Dan, thanks for the reply. It doesn’t work with the “.”

Please share your page and the code you added to check

https://shop.smu.edu.sg/

.header-wrapper { background: url("[https://cdn.shopify.com/s/files/1/0550/0620/0008/files/citiscape_header.jpg?v=1695025660](https://cdn.shopify.com/s/files/1/0550/0620/0008/files/citiscape_header.jpg?v=1695025660)") !important; }

Please update code like this

header.site-header { background: url("[https://cdn.shopify.com/s/files/1/0550/0620/0008/files/citiscape_header.jpg?v=1695025660](https://cdn.shopify.com/s/files/1/0550/0620/0008/files/citiscape_header.jpg?v=1695025660)") !important; }

You also can change position of image by following this

https://www.w3schools.com/cssref/pr_background-position.php

Thank you, sir! It works!

1 Like

Happy I could help.