-
Visia adding font weights
Hello,
I have seen other threads about adding additional font weights to the file PeThemeVisia as shown (I have added the 800 weight):
public function pe_theme_font_variants_filter($variants,$font) {
if ($font === "Open Sans") {
$variants="$font:400italic,300,400,600,700,800";
}
return $variants;
}
But when I add custom css to change:
.ticker h1{ font-weight: 800;}
the extra bold weight is not applied.
What am I doing wrong?
Thanks, Evan
-
Administrator
Hi, Can you share your website url so I can take a look?
-
Hello, Donagh--
The website url is www.evanmann.net
Note: It is password protected: alladin
You'll note I changed the font to Monserrat as part of the testing
Thanks,
Evan
-
Administrator
Hi, Find the following file: root folder/framework/php/PeTheme/Constant/google-fonts.php
In there you'll find the list of weights to be loaded for each of the fonts in Google's web font library. Search for your desired fonts and follow the stricture of registering multiple weights. Now when the font is selected in the theme admin, you should have access to all the specified weights. As you'll see in that file at the moment only weights 400 and 700 are loaded for Montserrat, which is what's placed in your page header in the Gfonts call.
-
Thank you, Donagh, for solving this.
--Evan