CMS Development

BobElmore
Member

Change font color for page

SOLVE

I want to change the color of header styles on my pages.

I don't want to change our template or style sheet.

 

I have successfully made style changes by adding styles in the page head, but when I try this with style color nothing happens.  

 

I had something similar for changing fonts that worked, so I put the following in my Page Head but it doesnt change anything.

<style>
body, a, h1, h2, h3, h4, h5, p, span, div, ul, li, input, span, textarea {
color: black;
}
</style>

 

Thanks.

0 Upvotes
1 Accepted solution
Jsum
Solution
Key Advisor

Change font color for page

SOLVE

@BobElmore,

 

You can try adding an !Important tag:

css target {
    attribute: value !important;
}

That should force the change. 

 

I really would recommend that you place any styles that you can into your stylesheet though. It's just good practice to avoid head and inline styling.

View solution in original post

0 Upvotes
5 Replies 5
Jsum
Solution
Key Advisor

Change font color for page

SOLVE

@BobElmore,

 

You can try adding an !Important tag:

css target {
    attribute: value !important;
}

That should force the change. 

 

I really would recommend that you place any styles that you can into your stylesheet though. It's just good practice to avoid head and inline styling.

0 Upvotes
BobElmore
Member

Change font color for page

SOLVE

Thanks, I will try it.

 

I agree about the stylesheet, but I only want to make this change on certain pages.

0 Upvotes
roisinkirby
HubSpot Product Team
HubSpot Product Team

Change font color for page

SOLVE

Hey @BobElmore did @Jsum's suggestion work for you?

0 Upvotes
BobElmore
Member

Change font color for page

SOLVE

Yes, that worked.  Sorry I didn't respond before.

roisinkirby
HubSpot Product Team
HubSpot Product Team

Change font color for page

SOLVE

Great to hear!

0 Upvotes