Google fonts
Hi guys,
So the answer to this may end up being the same as for my last query about removing the "Child Pages" block, but we'll see. :)
We would like to use a Google Font to keep our wiki content's look-and-feel in like with the rest of our websites. Ordinarily, one would place the code for this in the <head> of the page template. Is there a way to do this when using Scroll Versions?
Thanks in advance.
-
Hi Seona,
sorry :-)
Here you go: https://confluence.atlassian.com/display/DOC/Styling+Fonts+in+Confluence
Best,Nils
-
Hi Nils,
Thanks. I've tried the code from that page, and it allows me to change to another standard font - such as the Times (and fallbacks) of the example.
However we're wanting to use the font Roboto from Google Fonts (https://www.google.com/fonts/specimen/Roboto). I've tried adding just the name to the CSS, since you original response suggested that this should work. I used the Times example from the page you quoted as a base, since Roboto is a sans-serif font so I figured it would be fairly easy to spot if it worked. Sadly, the page is displaying with serifs.
body {
font-family: Roboto, Times, "Times New Roman", serif;
}Any suggestions as to what I'm dong wrong?
Cheers,
Seona. -
Hi Seona,
have you already tried to upload it to your system and then refer to the font (as described here: https://answers.atlassian.com/questions/9386799/confluence-add-custom-font-file-to-use-in-space-stylesheet-)?
Best,
Nils
Please sign in to leave a comment.
Comments
7 comments