2015-10-13, 05:06 PM
Hi, I'm not quite sure how to add Google fonts to MyBB...(default theme) I have the Google Font codes but I just don't know where to put them using the CSS/Code editor. Additionally It would be nice to know how to edit other themes too. Thank you!
@import url(https://fonts.googleapis.com/css?family=Lora);
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Lora::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>
<link href='https://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
font-family: 'Lora', serif;