• Resolved proudtobedad

    (@proudtobedad)


    Hi there,
    I’m using Modularity Lite, and having issues with fonts. Whenever I try to change the color/size/style of the fonts, it doesn’t show up onscreen.

    What’s weird is that, in the body of the posts, they are posting as sans-serif, where my font family is serif.

    Here is the code:

    .content h2 {
    font-family: Didot, Granjon, Georgia, serif;
    }
    .post, .page {
    display: block;
    clear: both;
    }
    .post h4, .post h6 {
    font-family: font-family: Didot, Granjon, Georgia, serif;
    font-size: 12px;

    Any ideas? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • link to your site?

    without seeing the css in connection with the html in a live site, there is not much to suggest.

    you could try to press ‘CTRL F5’ to clear the browser cache.

    Thread Starter proudtobedad

    (@proudtobedad)

    Here’s the link. https://kerganedwards-stout.com/?page_id=9

    At the moment, most pages are private, but I’m going to make About/Bio public so that you can see what I’m talking about.

    I’ve tried clearing the cache, but it hasn’t worked.

    Thanks.

    your div has the css class .container (there is no class .content in the html)
    changing that should get your header h2 font applied.

    as far as i can see, there is no style to tell the post paragraphs to be serif.

    this would get you a lot of serif font:

    .container, .container h2 {
    	font-family: Didot, Granjon, Georgia, serif;
    }

    on your linked page, there also seems to be no class .post but a class .page (this could be different for a post ?)

    maybe get familiar with a browser tool such firefox to help to identify the css classes of the elements.

    Thread Starter proudtobedad

    (@proudtobedad)

    Thanks–the font is now correct!!!

    One other quick question, since you’ve been so helpful: to change the font size in the body of the posts and pages only (but not the headers, which section of the css would I go to?

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!

    try:

    .container p { font-size: ??? ; }

    that should cover most of it

    https://www.w3schools.com/css/css_font.asp

    Thread Starter proudtobedad

    (@proudtobedad)

    Just gotta tell you–you’ve been a godsend! I don’t really know code, so trying to wade through it to get what I want has been challenging.

    MANY, MANY THANKS!!!!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Font change issues’ is closed to new replies.