Hello I really need help changing the background colour of a single page on my website. I think it is a coding issue which I have no clue how to do ![]()
Yellow - Pantone: ffd000
Please help me ![]()
Hello I really need help changing the background colour of a single page on my website. I think it is a coding issue which I have no clue how to do ![]()
Yellow - Pantone: ffd000
Please help me ![]()
I understand your concern. I checked the link and I came to know that there is no unique class applied on body tag
First of all, you have to add a βpage-{{ page.title }}β class to your body tag. Due to this, you can get a unique class for each page
In the second step, you have to add the below code to the theme.css file.
.page-Pace {
background-color: #ffd000;
}
Please check the attached screenshot:
I hope this can help you to resolve the issue.
Hello, thank you for your help. I tried your method but it didnt work unfortunately. Also now all the links on my website does not click. Have i messed it up. If so what do you think i did wrong?
I helped to resolve the issue. Now, we can add conditions to the body tag. So itβs added class only when the template is page.
First all of all, replaced the code by {%- if template == βpageβ -%} page-{{ page.title | downcase }} {%- endif -%} from theme.liquid
In the second step, you have to replaced the code of the theme.css file.
.page-pace {
background-color: #ffd000;
}
I hope this can help you to resolve the issue.