WordPress.org

Ready to get started?Download WordPress

Forums

Change body text color in twentyten? (11 posts)

  1. andrewblizzard
    Member
    Posted 3 years ago #

    Hi,

    I am a complete newbie when it comes to editing wordpress. I am trying to change the text color in the body for all the pages on my site. So when I create a page and enter some text into the Visual Editor I want it to be white text.

    I have changed my page background to black so I need the text to be white now. Can someone help me with the code please?

    Thanks for your help!
    Andrew

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Don't edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

  3. andrewblizzard
    Member
    Posted 3 years ago #

    I tried to create a child theme but it confused me a little. I created a directory called "child" in my theme directory and created a style.css file. When I activated the theme, my site defaulted to the original twentyten look. I assumed that because the child theme imports the style.css from my parent theme that the site shouldn't change when the child is activated.

    I must have been doing something wrong. Here is the code I was using in the style.css I uploaded to the child directory.

    /*
    Theme Name: childtwentyten
    Theme URI: http://mywebsite.com/
    Description: Child Theme for Twenty Ten
    Author: Andrew
    Author URI: http://mywebsite.com/
    Template: twentyten
    Version: 0.1
    */

    @import url("../twentyten/style.css");

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Everything you've posted sounds correct. If you uploaded a custom background via Appearance-.Background when using TwentyTen, you'll have to carry out the same process for this child theme.

  5. andrewblizzard
    Member
    Posted 3 years ago #

    If already made a few changes to the twentyten theme unfortunately - custom header, custom background, menu header hidden at the top of each page, website title hidden at top of header image...

    Would I need to replicate allof those in the child theme as well?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Yes. The changes you made the Twenty Ten's style.css file or its template files will be lost when you next upgrade WordPress. Custom header & custom menus are theme specific, so have be configured for each theme - even child themes.

  7. andrewblizzard
    Member
    Posted 3 years ago #

    Okay! So I will need to track all the changes I made to the parent theme and duplicate them in the child theme. Shouldn't take too long.

    After I've done that and activated the child theme, my site shouldn't change in appearance at all correct?

    Now, when I get that completed, is it simple to change the body text color in the child theme?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    my site shouldn't change in appearance at all correct?

    Correct.

    is it simple to change the body text color in the child theme?

    Yes. All you have to do is edit (or add) the appropriate entry in the child's style.css file. I usually recommend using Firefox & the Firebug add-on for this kind of work. Off the top of my head, something like:

    body,
    input,
    textarea {
    color: #fff;
    }

    in the child's stylesheet should sort out most of the text - although there may be a few odd areas that you'll have to specify separately

  9. andrewblizzard
    Member
    Posted 3 years ago #

    Odd areas such as link color, hover color, post color, etc? I think I have found references to changing most of those on the forum so I should be able to find it easily.

    Thanks for your advice!!
    Andrew

  10. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Odd areas such as link color, hover color, post color, etc?

    Pretty much. A search on '#666' in the original style.css file might throw up some likely candidates but there's also some lighter grey text for the post meta & date, from what I recall.

  11. justwondering
    Member
    Posted 3 years ago #

    Great Advice , but can you tell me please how do i start a child theme ?

    thank you..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.