Change font only inside post content
-
Hi everyone!
I’m using the typekit option “Open Sans” for the body text of my website. Is it possible to keep it for most .entry-contents, except the actual content of the posts when you open it?
For example, I mean keeping “Open Sans” for the .entry-content (summaries) of the .home and .categories pages, but inside the post change the font to “Calluna”?
I’ve tried modifying the CSS, but the “Open Sans” keeps overriding the “Calluna”…
What can I do?
Thanks a lot!
The blog I need help with is: (visible only to logged in users)
-
-
Sorry, it’s not working. I’ve already tried
.entry-content {
font-family: ‘Calluna’;
}to no avail…
-
A font has to be assigned at Appearance > Customize > Fonts before it will actually be loaded on your site, so if Calluna is not set in Headings or Body, we cannot assign it via CSS because it has not been loaded. I hope that makes sense.
We could switch the body text on single posts back to standard serif fonts that are loaded on all computers, such as
.wf-active .single .entry-content p, .wf-active .single .entry-content { font-family: Georgia, Times, "Times New Roman", Palatino, serif; }
-
@richardolga2078
Please note that all CSS editing here is themes specif editing. The OP is using the Sight theme, not the Modern News theme. -
-
- The topic ‘Change font only inside post content’ is closed to new replies.