Home Forums Weaver Xtreme Theme adding custom fonts Re: adding custom fonts


Loading Font

Your file has this <link>:

<link href=’/fonts/smokum/stylesheet.css’ rel=’stylesheet’ type=’text/css’>

This is almost certainly not correct. This would mean that the root directory of you site would have to have a directory called /fonts. Each time you update WordPress, that directory will be lost.

The best place to put locally hosted fonts is in a /wp-content/uploads subdirectory: e.g. /wp-content/uploads/fonts. Your link should then be:

<link href=’//yoursite.com/wp-content/uploads/fonts/smokum/stylesheet.css’ rel=’stylesheet’ type=’text/css’>

Display in Visual Editor

The Visual Editor is unable to display actual add-on fonts, but will instead display the “default” rule for a font – e.g., serif, sans-serif, script, or whatever. So you need to be sure to have fall-back fonts listed in the font-family value.

Allowing the actual font to display in the visual editor may be added to a future  version of Weaver Xtreme.