0

I am trying to change the text color of a header but the value is not being updated. Any idea whats going wrong? Here is my code:

.content
{
    text-color:blue;
}
3
  • Are you using a Child theme? where exactly did you update that code? you can always look in your console which CSS file is being loaded and then update it. Commented May 20, 2015 at 5:34
  • i have selected and activated the theme in wordpress and i am trying to change the text color. i have open the css in wordpad and i ll make the changes and upload in server. but its not get updating Commented May 25, 2015 at 4:39
  • Make sure the file is actually loaded -AFTER- all the other CSS files! Commented May 25, 2015 at 7:07

3 Answers 3

2

It's not text-color:blue; it's color:blue property to change the color of the text/font.

Use

.content
{
 color:blue;
}

Will work for you. Refer this link.

Sign up to request clarification or add additional context in comments.

Comments

0
.content
{
color:blue;
}

There is no such (you above said) css to change the text color

Comments

0

Does this work?

.content
{
color:blue!important;
}

Remember headers are styled under h tag.

h1 {
color:blue!important;
}

HTML:

<h1>I'm the Header now</h1>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.