Shopify themes, liquid, logos, and UX
Join us March 21 for an AMA on planning your 2023 marketing budget with 2H Media co-owners, Matt and Aron
Hi everyone!
I was hoping to get some help with the coding to get a background image added to the narrative theme. Any help would be appreciated!
Thanks 🙂
Solved! Go to the solution
This is an accepted solution.
Hello, @Blueskiesskiesa
Welcome to the Shopify community!
and Thanks for your Good question.
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
body.password-template {
background-color: transparent;
background: url({{ 'nnatural_scrub_background.jpg' | asset_url }});
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
also, please check attachment this flow step
hello @Blueskiesskiesa
Welcome to the Shopify community! and Thanks for your question.
Please share your site URL,
So I will check and provide a solution here.
This is an accepted solution.
Hello, @Blueskiesskiesa
Welcome to the Shopify community!
and Thanks for your Good question.
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
body.password-template {
background-color: transparent;
background: url({{ 'nnatural_scrub_background.jpg' | asset_url }});
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
also, please check attachment this flow step
It did not work 😞
I have:
.password-html {
//background-color: $color-main-bg;
background: url({{ 'nnatural_scrub_background.jpg' | asset_url }});
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
Yes, i have update my above code can you please read again proper li ignore attachment
Thank you so much!!
Thanks for your support and your compliments.
Is there an easier way to find that one line of code where we place the password background image?
There are 14,000 lines I'm looking at lol
Super helpful! Building on what you've already provided, how can I add opacity to the background image itself (not the entire page)?
anyone able to assist me on how to add the background?
yes please flow above step if now able to this please share store url so i will check and guide
thanks for store url
let me know where do you have add?
Please help! Not working for me. I'm using Narrative Theme. my url is Freehueman.com
currently what code looks like:
.password-html {
//background-color: $color-main-bg;
body.password-template {
background-color: transparent;
background: url({{ 'password_background.png' | asset_url }});
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
}
do you have your css file to liquids that should be work
Hi Im using Debut theme and there is no password.html in the theme.css anywhere ( I searched for it exactly how it looked) so I don't know where to paste that code 😕 Please help if you can, my website is www.officialkollection.com . @KetanKumar
User | RANK |
---|---|
175 | |
151 | |
92 | |
33 | |
30 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023