How do I change background of a specific collection and product?

Solved
Highlighted
New Member
10 0 0

Thank you for replying quickly!

However that doesn't work.. maybe I'm using it wrong. The above code works in Theme.Liquid so I amended to:

 

   <style>
    {% if collection %}
    {% if collection.handle =='summer-caps' %}
    body{background: red;}
     body{color:black;}
    {%endif%}
    {%endif%}
  </style>
 
Is 
   body{color:black;}
In the wrong place?
 
 
0 Likes
Highlighted
Shopify Expert
3694 550 894

You can add this:

 <style>
    {% if collection %}
    {% if collection.handle =='summer-caps' %}
    body{background: red;color:black;}
    {%endif%}
    {%endif%}
  </style>
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
10 0 0

It doesn't work.

It changes the background color but not the font.

: (

any ideas?

 

0 Likes
Highlighted
Shopify Expert
3694 550 894

that i told you have to set color for each selector on page. you can not set color direct by given to body 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
10 0 0

Do you mean within this same Theme.liquid code , under where I changed the background color?

Individual text, like product-single__price ? This doesn't work either. Could you please give me one example , like how to change the product titles color on this collection page only?

Thank you!

 

0 Likes
Highlighted
Shopify Expert
3694 550 894

send your store url 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
10 0 0

The collection I need as a white background and black font is;

https://store.100-percent.co.uk/collections/eli-fur

Other collections like this will remain grey background and white font;

https://store.100-percent.co.uk/collections/riopy

 

 

 

0 Likes
Highlighted
Shopify Expert
3694 550 894

try to add this code for text color:

body a, body span, body div {
    color: green !important;
}

 keep rest condition as it is

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
1 Like
Highlighted
New Member
10 0 0

Thank you!! that worked!!! 

Do you have a paypal link or something i can "buy you a drink" to say thank you?

0 Likes
Highlighted
Shopify Expert
3694 550 894

You can use this email: jasoliyabrijesh123@gmail.com 

thank you 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes