Change background colour of collection page - Atlantic theme

Change background colour of collection page - Atlantic theme

AU
Tourist
7 0 1

Hi - I would like to be able to change the dark grey background colour of the collection pages on this page.
Thanks for your help.

Link https://5lmkqkbxyv3oxgud-69025857763.shopifypreview.com

Replies 7 (7)

niraj_patel
Shopify Partner
2391 516 515

Hello @AU 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
 div#shopify-section-template--17604163502307__main {
      background: #a9a9a9 !important;
  }
</style>

niraj_patel_0-1723023502868.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
AU
Tourist
7 0 1

Hi thank you for your response. Unfortunately this has not worked.

niraj_patel
Shopify Partner
2391 516 515

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
div[data-section-id="template--17604163502307__main"] {
background: darkgray !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
AU
Tourist
7 0 1

Hi just to clarify what I need is to remove the dark grey from the "collection boxes" on the home page , not change the backgrounds of the individual collection pages. Hope that makes sense.

GTLOfficial
Shopify Partner
801 167 178

Hello @AU 
Go to online store ---------> themes --------------> actions ------> edit code------->theme.css
add this code at the end of the file.

#shopify-section-template--17604163502307__main {
background-color: gray !important;
}

result
25.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

Sweans
Shopify Partner
429 89 126

Hi @AU ,

To change the background color, you can follow the steps given below.

1. Log in to your Shopify Admin Panel:

2. Navigate to Online Store > Themes:

   In the left-hand sidebar, go to "Online Store" and then click on "Themes."

3. Edit Code:

   Find your active theme, click on "Actions," and select "Edit code."

4. Locate the CSS File:

   In the left-hand sidebar, find the Assets folder and look for a file with a name like theme.css, style.css, or something similar. Click on this file to open it.

 

Add the CSS Code:

for collection page

 

[data-section-type="static-collection-list]{
 background-color: #grey !important;
}

 

for sub collection pages like nautical collection , artic animals etc.

 

[data-section-type="static-subcollection"] {
    background-color: #grey !important;
}

 


Result:-

Sweans_0-1723026493507.png

 

I hope this helps! If it does, please like it and mark it as a solution!

If you need further assistance, feel free to reach out!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

BSSCommerce-B2B
Shopify Partner
1972 564 566

HI @AU , 

I have reviewed your requirement, you just need to edit script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1723026816307.png

 

 

Step 2: Search for the file theme.liquid. And add this code snippet before tag </head> or </body>:

<script>
  document.addEventListener('DOMContentLoaded', function() {
    if (window.location.pathname.includes('/collections') || window.location.pathname.includes('/pages')) {
      var pageBodyContent = document.querySelector('.page-body-content');
      if (pageBodyContent) {
        pageBodyContent.style.background = 'darkgrey';
      }
    }
  });
</script>

In this step, you change the background of body content to darkgrey and only effect on collection page as you want.

Step 3: Save your code and reload this page.

=>> The result: 

BSSCommerceB2B_1-1723026910191.png

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now