queue  6
support
Results 1 to 5 of 5

Thread: Visia adding font weights

  1. #1
    Junior Member
    Join Date
    Nov 2017
    Posts
    3

    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

  2. #2
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,946
    Hi, Can you share your website url so I can take a look?

  3. #3
    Junior Member
    Join Date
    Nov 2017
    Posts
    3
    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

  4. #4
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,946
    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.

  5. #5
    Junior Member
    Join Date
    Nov 2017
    Posts
    3
    Thank you, Donagh, for solving this.

    --Evan