Support » Fixing WordPress » change the font of posts (titles)

  • Resolved Slamer51

    (@slamer51)


    Hello,

    I tried to change the font of titles (Georgia) to Arial using this code :

    .entry-title {
    font-family: Quicksand, Helvetica, Arial, sans-serif;
    font-style: normal;
    }

    but it’s not working ? how to fix that please ?

    I m using the theme Apostrophe.
    Here is the blog : http://blog.pbicadcam.com/wordpress/

    Thanks very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    Try changing

    .entry-title {
    font-family: Quicksand, Helvetica, Arial, sans-serif;
    font-style: normal;
    }

    to:

    .entry-title, a.entry-title {
    font-family: Quicksand, Helvetica, Arial, sans-serif;
    font-style: normal;
    }

    Does that work?

    Hi,

    Not working.
    The font of post titles still in Georgia. I want them in Arial.

    any other ideas ?

    Thanks.

    Hi,
    You are not editing styles.css directly, but are using some wp-custom-css.css file. This will not have the priority now. Edit styles.css directly and should work.
    BR
    Ari

    Moderator Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    It looks like your stylesheet is adding the Georgia font on line 1669 of your style sheet. I would recommend using a child theme so your changes are not removed in any future theme updates.

    It is currently set to:

    .archive .entry-title,
    .blog .entry-title,
    .search .entry-title {
    	/* font-family: "PT Serif", Georgia, "Times New Roman", serif; */
    	font-size: 21px;
    	font-size: 2.1rem;
    	font-weight: normal;
    	line-height: 1.2;
    	margin: 0;
    	padding: 0;
    }

    Try using:

    .archive .entry-title,
    .blog .entry-title,
    .search .entry-title {
    	font-family: Quicksand, Helvetica, Arial, sans-serif;
    	font-size: 21px;
    	font-size: 2.1rem;
    	font-weight: normal;
    	line-height: 1.2;
    	margin: 0;
    	padding: 0;
    }

    ALright.
    It’s working. Thanks very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘change the font of posts (titles)’ is closed to new replies.