Viewing 2 replies - 1 through 2 (of 2 total)
  • htvu

    (@htvu)

    Yes, use this code in your functions.php

    function filter_ot_recognized_font_families( $array, $field_id ) {
    
      /* only run the filter when the field ID is my_google_fonts_headings */
      if ( $field_id == 'my_google_fonts_headings' ) {
        $array = array(
          'sans-serif'    => 'sans-serif',
          'open-sans'     => '"Open Sans", sans-serif',
          'droid-sans'    => '"Droid Sans", sans-serif'
        );
      }
    
      return $array;
    
    }
    add_filter( 'ot_recognized_font_families', 'filter_ot_recognized_font_families', 10, 2 );
    Thread Starter Xmod08

    (@xmod08)

    Thank you! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Font Family in Typography’ is closed to new replies.