Background Color Dawn Template only Homepage

Hi

I do not know why but I am not able to change the backgroundcolor of ONLY the homepage of the Dawn Template.

Can someone please help?

Kind regards

@hakomakotako ,

share the link.

Hello @hakomakotako ,

It’s GemPages support team and glad to support you today.

I would like to give you a recommendation to support you so kindly follow the steps below:

  1. Go to Online Store > Theme > Edit code of your current theme:

  1. Open your theme.liquid theme file

  2. Paste the below code before

{% if template == 'index' %}

{% endif %}

For example,

If you require any further information, feel free to contact me.

Best regards,
GemPages Support Team

1 Like

@atria

I understand you want to remove video background on the product details page. Follow these steps to do that

  1. Go to Shopify theme manager

  2. Edit code of the current theme

  3. Open file layout > theme.liquid

  4. Add this code to body tag class=“gradient {{ request.page_type }}”

  5. Click “Save” button,

  6. Open assets > base.css file, add this code at the end

body.index {
    background-color: red !important;
}

Try it and let me know

Thank you so much, for this detailed answer! It worked perfectly!

@hakomakotako

It means your issue is addressed, right?

Hello @hakomakotako ,

I am so glad that my solution can help.

Best regards,
GemPages Support Team

Thank you again. Do you maybe also know how to change the background for only the mobile homepage? This would be insane if you know that!

Kind regards

Hello @hakomakotako ,

It is possible, you can use this code:

{% if template == 'index' %}

{% endif %}

Best regards,
GemPages Support Team