Reply To: Changing the Default Font

Home Forums WordPress Themes – Premium Preference Changing the Default Font Reply To: Changing the Default Font

#18755
Sushil Adhikari
Moderator

I just took a look to refresh my memory…thanks for the link. The body styling in the style.css line 76 looks like this:

body {
font-size: 13px;
font-size: 0.813rem;
line-height: 21px;
line-height: 1.313rem;
}

I use two font sizes, px for older browsers and the rem for newer. The above code means that the rem value will override the px. Also, I see I made the body as 13px (normally I do it at 16). If you need a reference to convert px to em (also rem), I use this online tool:

http://www.pxtoem.com

Any sizing in rem in the stylesheet will be relative to the base size of the body, in this case 13px (and 0.813rem).