Support Forum

Modifying font in default theme

EM Ethan Miller
Ethan Miller
Member

Hi, I’m trying to understand what is the best/most correct way to modify the font on my forum.  I’m using the default theme.  I found the following css block in the default.css:

#spMainContainer {
 color: <?php echo($mainBackGroundColor); ?>;
 background: <?php echo($mainBackGround); ?>;
 border: <?php echo($mainBackGroundBorder); ?>;
 font-family: <?php echo($mainFontFamily); ?>;
 font-size: <?php echo($mainFontSize); ?>;
 line-height: <?php echo($mainLineHeight); ?>;
 <?php echo($smallRadius); ?>
 padding: 1px;
}

My suspicion is that the best way to change the font would be to find where the $mainFontFamily is set and modify it to my desire font.  Is that right?  Or should I rather set the font-family within this css style block?

Thx! 

1 Answer

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

And you would find that definition in the overlay file you are using. I personally recommend changing it in the overlay file. Either way – as always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)