Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28276

    Hello,

    I found a thread elsewhere that showed how to add new Google Fonts to the options in functions.php and that works out well.

    I was wondering where the best place to change the font stack as a whole would be though. We switched over to a serif font for headers, but in the font-stack, the alternative fonts are still Helvetica, and sans-serif. I didn’t want to just overwrite the header font stack in the child style-sheet if there was a better way.

    If there a better filter to override or is editing the child style.css the best way?

    #137087

    Hi,

    I’m sure the filter is the best way to add fonts. You can edit includes > admin > register-admin-options.php:

    $avia_elements[] =		array(	"name" 	=> "Heading Font",
    "slug" => "styling",
    "desc" => "The Font heading utilizes google fonts and allows you to use a wide range of custom fonts for your headings",
    "id" => "google_webfont",
    "type" => "select",
    "no_first" => true,
    "class" => "av_2columns av_col_1",
    "onchange" => "avia_add_google_font",
    "std" => "Open Sans",
    "subtype" => apply_filters('avf_google_heading_font', array('no custom font'=>'',

    'Alice'=>'Alice',
    'Allerta'=>'Allerta',
    'Arvo'=>'Arvo',
    'Antic'=>'Antic',

    'Bangers'=>'Bangers',
    'Bitter'=>'Bitter',

    'Cabin'=>'Cabin',
    'Cardo'=>'Cardo',
    'Carme'=>'Carme',
    'Coda'=>'Coda',
    'Coustard'=>'Coustard',
    'Gruppo'=>'Gruppo',

    'Damion'=>'Damion',
    'Dancing Script'=>'Dancing Script',
    'Droid Sans'=>'Droid Sans',
    'Droid Serif'=>'Droid Serif',

    'EB Garamond'=>'EB Garamond',

    'Fjord One'=>'Fjord One',

    'Inconsolata'=>'Inconsolata',

    'Josefin Sans' => 'Josefin Sans',
    'Josefin Slab'=>'Josefin Slab',

    'Kameron'=>'Kameron',
    'Kreon'=>'Kreon',

    'Lobster'=>'Lobster',
    'League Script'=>'League Script',

    'Mate SC'=>'Mate SC',
    'Mako'=>'Mako',
    'Merriweather'=>'Merriweather',
    'Metrophobic'=>'Metrophobic',
    'Molengo'=>'Molengo',
    'Muli'=>'Muli',

    'Nobile'=>'Nobile',
    'News Cycle'=>'News Cycle',

    'Open Sans'=>'Open Sans:400,600',
    'Orbitron'=>'Orbitron',
    'Oswald'=>'Oswald',

    'Pacifico'=>'Pacifico',
    'Poly'=>'Poly',
    'Podkova'=>'Podkova',
    'PT Sans'=>'PT Sans',

    'Quattrocento'=>'Quattrocento',
    'Questrial'=>'Questrial',
    'Quicksand'=>'Quicksand',

    'Raleway'=>'Raleway',

    'Salsa'=>'Salsa',
    'Sunshiney'=>'Sunshiney',
    'Signika Negative'=>'Signika Negative',

    'Tangerine'=>'Tangerine',
    'Terminal Dosis'=>'Terminal Dosis',
    'Tenor Sans'=>'Tenor Sans',

    'Varela Round'=>'Varela Round',

    'Yellowtail'=>'Yellowtail',

    )));

    You can add or remove fonts.

    Regards,

    Ismael

    #137088

    Hi there, I was looking at the same thing.

    Cannot find register-admin-options.php

    Where is that. I am acessing wp-include though FTP

    #137089

    Hi,

    Not through wp-include but you should go to wp-content > themes > Enfold > Includes > Admin and register-admin-options.php file is there

    Regards,

    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Font Stack’ is closed to new replies.