I tried putting a different font in css for body but it picks up the theme's default. Is there a way to use my own font?
Adding own body text font
(9 posts) (3 voices)-
Posted 2 years ago #
-
you can select a new font in the theme settings. If you want to override that one, you have to use css specificity, but adding it in a child theme would probably work. Use firebug if you want to do such stuff, you are blind without it.
Posted 2 years ago # -
Yes I'm trying to override. I tried adding a child theme but I still get the bigfeature fonts. I can change the color height, but viewing the page in firebug the html is "font-family:Arial,Arial,Helvetica,sans-serif;" regardless of what I put in css. I don't know how to alter the css specificity. Would my last resort be to seek a programmer? Thanks.
Posted 2 years ago # -
Oh by the way, if I changed the
body { font-family: <?php echo $bf_body_font ?>, Arial, Helvetica, sans-serif;in optionstyles.php to the font I want, will that do the trick? (noob attempt)Posted 2 years ago # -
you can change optionstyles.php, but it's recommended to overwrite in the child theme. To override you can write:
html body { font-family: Verdana; }
Why do you want to change the body font type, when you can change it in the theme settings?
Posted 2 years ago # -
Well, I'm trying to use "Lucida Grande",Verdana,"Bitstream Vera Sans",Arial,sans-serif;
I did change optionstyles.php and no change. I'll try the childtheme again.
Posted 2 years ago # -
I used that new line of code in the child theme, and it works now. Thanks for sharing!
sorry for the double posting
Posted 2 years ago # -
I'm having the same issue. I'm not using a child theme, but I want to use Myriad Pro as the body and H1, H2 font-family. I've tried overriding it with CSS and I've tried including Myriad pro as an option in the optionsgen.php file. No dice. Please help.
If I can't override the font with CSS, how do I make my desired body font show up in the options panel drop down?
Posted 1 year ago # -
never mind. got it. the html body {font-family: XYZFONT;} works in the main theme too.
Posted 1 year ago #
Reply
You must log in to post.