- This topic has 5 replies, 2 voices, and was last updated 9 years, 4 months ago by
Sebastian.
Author | Posts |
---|---|
blokartphil
December 6, 2015 at 5:16 am
|
Heads up! this post was created when Microthemer was at version 4. The current version is 7. Some references to the interface may be out of date. How can I set the font the the body of whole site? |
Sebastian
December 7, 2015 at 10:28 am
|
Hey, could you post a link to your site so that I can advise you further? Thanks! |
blokartphil
December 8, 2015 at 8:21 am
|
Hi, thanks for the response. |
Sebastian
December 9, 2015 at 11:40 am
|
Hey, I see that the content of the two pages are the same. So you will only develop one of them right? (the other is a test of some sort). Regardless, the fonts on both pages are being set by the same set of CSS rules. Your theme is outputting the following CSS in the HTML head of the page: (I’ve only included the selectors that relate to font-family)
These style rules mean that if you set a global font-family on the body element, your font-family rule get overridden by all of the above font-family definitions, because they have higher CSS Specificity. The cleanest approach would be to remove the above selectors that set font-family on headings and paragraphs individually. Then you can simply set the font-family on the body element. Your chosen font will then be inherited by all of the headings and paragraphs. Do you know if the above rules have been generated by theme options that you can disable? if not, another option would be to create a single comma separated selector in Microthemer which overrides all of the selectors your theme generates for setting the font:
You can manually create selectors via the (+) icon when hovering over folder names in the main menu at the top left. Cheers, ps the font-weight for your paragraphs (#content article p) has been set to 100. This makes the text so light it’s quite hard to read in Chrome. |
blokartphil
December 10, 2015 at 10:01 am
|
Thanks for your quick response and your help on this. Ah, the font weight!
There seems to be problems with this theme and while Microthemer may help me tweak parts, I may have to get another theme. |
Sebastian
December 15, 2015 at 12:15 pm
|
Thanks for the update. Please let me know if you need further assistance. |