FDT
March 20, 2023, 6:00pm
1
Hi there,
I have a Dawn theme site where I have created a blog page.
Unfortunately I am unable to change the Blog Page title’s Background color to toher than the Default theme colors.
(I am referring to the The Blog page in itself and not the featured Blogs titles) .
You can find attached a screenshot explaining my issue.
I would appreciate any solution,
Regards,
FDT
1 Like
Hi @FDT ,
Can you share your website so we can provide a code specific for you? Thank you
FDT
March 20, 2023, 6:16pm
3
Hi @FDT ,
I see you have a code added already with an !important . I always discourage using “!important” and hopefully Shopify developers never advise someone to use this. This creates a problem in the future. Just like what happen to you now.
Two solutions you can choose.
First Solution:
Remove the code below that is in the base.css file under the Asset folder. But this will affect whatever the element that you want this to work
header{
background: #D8C5A5 !Important; /*couleure Beige*/
/*background: #201E1C !Important;*/
/*background: #D3D3D3 !Important;*/
color: #FFFFFF !Important;
}
Second Solution:
Add an !important code to cover the previous one. I recommend not using this.
From your Admin page, go to Online store > Themes > click the three dots > Edit code
Find the Asset folder, and open the base.css file
Add the code below at the very end of the file
header.page-width.page-width--narrow {
background-color: unset !important;
}
FDT
March 20, 2023, 6:34pm
5
Hi @made4Uo ,
I appreciate your prompt reply and solution.
But as you can see if I remove the code I have set I will lose the color of my header.
Is there any solution to separate each color apart; One for the website header and one for the Blog page Title>
Hi @FDT ,
I understand. Please remove the said code with !important and replace it with the code below. The code only applies to the header and not the page title
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
background: #D8C5A5;
color: #fff;
}
FDT
March 20, 2023, 6:54pm
7
this has partially solved the issue as I lost now the whole website header color. I only have a part of the header with the background as per attached.
Sorry, my bad. I thought I did tried the code. Please replaced the previously provided code with the code below.
sticky-header.header-wrapper.color-background-1.gradient.header-wrapper--border-bottom {
background: #D8C5A5;
color: #fff;
}
FDT
March 20, 2023, 7:07pm
9
@made4Uo this code worked perfectly!
Excellent. I really appreciate your prompt action and solution.
I recommend @made4Uo as a Shopify coding solution.
Best regards,
FDT
Best regards,
1 Like