Change main font color

  • Unknown's avatar

    Hi There,

    What would be the CSS coding for changing the main font color and blog post title with the ever after theme?

    The blog I need help with is: (visible only to logged in users)

  • Hi!

    To select titles color, you can use this code. It will also change your content color:

    body, button, input, textarea {
        color: rgb(255, 0, 0);
    }

    But in main page, where the title is a link to the content, you need a more specific selector :

    .entry-title a, .entry-title a:visited {
        color: rgb(255, 0, 0);
    }

    With that you would have your text and titles in your preferred colors, but what about links?

    a {
        color: rgb(0, 255, 0);
    }

    And, if you want to change the color on hover…

    a:focus, a:active, a:hover {
        color: rgb(0, 0, 255);
    }

    PS: Right now you have a tag in your Hello World post, so the content in it will not be affected by these changes. As soon as you edit/change this post, it will work.

    I hope this helps.

  • Of course, this CSS code is to be used just in case you think “colors & backgrounds” tag in your theme customize menu is not enough…

    Please, take a look to this before changing css code : https://en.support.wordpress.com/custom-design/custom-colors/
    :)

  • The topic ‘Change main font color’ is closed to new replies.