Hello,
I’m wanting to change the colour of our background but on the homepage only.
The colour I would like to change it to is HEX code: #1500e3
Here is a preview link to our website.
https://va15lqj1ftozvt3l-55043031221.shopifypreview.com
I am using Taste theme.
Thanks!
Hi @Elliott94 ,
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Layout->/theme.liquid->paste below code before :
{% if template contains 'index' %}
{% endif %}
I hope it would help you
Best regards,
Kate | PageFly
Amazing thanks @PageFly-Kate that worked perfectly!
Hello @Elliott94
It’s GemPages support team and glad to support you today.
I would like to give you a solution to support you.
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid theme file.
-
Paste the below code before :
{% if template contains 'index' %}
{% endif %}
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
@Elliott94
You should update the code to align the image to the center of the screen, it will not be skewed on wide screens
Hi @GemPages this is exactly what I’d like to do but I’m struggling. I’d like it to be centre and middle if possible, so it shows on the middle in mobile.
This is the code I currently have, this is in theme.liquid also, directly under - {{ content_for_layout }}
{% if template.name == 'index' %}

{% endif %}
Any help would be much appreciated. Thanks!
@Elliott94
Please try again with the following code:
{% if template contains 'index' %}
{% endif %}
@GemPages that worked perfectly, thank you so much!