WordPress.org

Forums

How to change the default font style and color (8 posts)

  1. Sinardja
    Member
    Posted 1 year ago #

    Hi,
    I use inkness theme, i really love it, but i want to change the font style to Verdana and font color to dark gray for all the post. How to do that?

    My website is: http://seputarjantung.com

    Thanks

  2. Maria Antonietta Perna
    Member
    Posted 1 year ago #

    Hi Sinardja,

    If your theme hasn't got a way to customize fonts, then you can change the basic font for the entire site by adding this CSS rule to a child theme's stylesheet (or a custom CSS plugin):

    body {
      font-family: Verdana, sans-serif;
      color: #333;
    }

    The color value is hexadecimal notation for dark gray, but you can change it to whatever other color preference.

  3. Sinardja
    Member
    Posted 1 year ago #

    Thanks Antonietta
    I've copied and paste the CSS rule to the CSS editor. I do believe it should work, but it's not. The font style and color still in it's default. I don't understand why?

  4. Maria Antonietta Perna
    Member
    Posted 1 year ago #

    Keep the CSS above, plus add this one more rule:

    `#primary-home .entry-title,
    #primary-home .entry-title a,
    .blog .entry-title,
    .search .entry-title,
    body.archive .entry-title {
    font-family: Verdana,Arial,sans-serif;
    }`

  5. Sinardja
    Member
    Posted 1 year ago #

    Thanks again Antonietta

    I've added what you give, but it still didn't work. What's wrong?

  6. Maria Antonietta Perna
    Member
    Posted 1 year ago #

    I get the right result using Firebug. I also found these styles:

    .font {
      font-family: "Open Sans", Times, serif;
    }
    .font-heading {
      font-family: "Open Sans", Arial, Helvetica, sans-serif;
    }
    .font-title {
      font-family: "Open Sans", Helvetica, sans-serif;
    }
    body {
      font-family: "Open Sans", Times, serif;
    }

    Try repeating the same styles in your child theme stylesheet by change the font family into Verdana, as I did in the previous posts.

    I hope this helps.

  7. Sinardja
    Member
    Posted 1 year ago #

    Thanks Antonietta. It works

  8. Maria Antonietta Perna
    Member
    Posted 1 year ago #

    Wow! Really glad to hear that.

Topic Closed

This topic has been closed to new replies.

About this Topic