Loading...
 
Features / Usability

Features / Usability


Google fonts in wiki?

posts: 58

Hi pretty much as the subject says...

How can I add google fonts to the wiki? I tried to look in the php file for a header file oe something since Google requires you to add the font reference in rhw tag...

Thanks in advance for an answer! :-)

posts: 4656 Japan

Hi,

I'm not sure exactly what you mean by adding Google fonts to the wiki. Normally the font being used is specified by CSS. A number of the themes shipped with Tiki use Google fonts (web fonts). For example, the FiveAlive-lite theme that's used at this site specifies the Lato font, which is fetched from Google Fonts.

Here's the body element font rule for this site
Copy to clipboard
body { font-family: Lato, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333333; background-color: #ffffff; }


I haven't tested this but I imagine you could add rules in the Customization tab of the Look & Feel admin page to import the font (see https://fonts.google.com/specimen/Lato?selection.family=Lato ) and specify it for "body" or other page elements, following the description at the Google font pages. (Select the font at Google and click the "Family selected" box at the bottom to get the instructions on how to have it provided. In our themes we use the "import" method but you could also experiment with putting a link in the HTML head section, using the appropriate section under the Look and Feel Customization tab.

-- Gary