Shopify themes, liquid, logos, and UX
Hello,
Can someone please tell me how to add a background image to my "About Us" page. My store url is projects817.com
Solved! Go to the solution
This is an accepted solution.
Hi @Only1mrsfragili,
Please follow the steps below:
- Step 1: Upload background image at Assets.
- Step 2: Go to theme.liquid file and add code here:
Code:
{% if page.handle == 'about-us' %}
<style>
#shopify-section-template--14869219573898__main {
background-image: url({{ 'background.png' | asset_url }});
background-position: center;
background-size: cover;
}
</style>
{% endif %}
Hope it helps!
This is an accepted solution.
Hi @Only1mrsfragili,
Please follow the steps below:
- Step 1: Upload background image at Assets.
- Step 2: Go to theme.liquid file and add code here:
Code:
{% if page.handle == 'about-us' %}
<style>
#shopify-section-template--14869219573898__main {
background-image: url({{ 'background.png' | asset_url }});
background-position: center;
background-size: cover;
}
</style>
{% endif %}
Hope it helps!
It worked! Thank you so much!
User | RANK |
---|---|
133 | |
92 | |
77 | |
64 | |
54 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022