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 |
---|---|
62 | |
52 | |
47 | |
39 | |
38 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023