twentyfourteen_font_url

Register Lato Google font for Twenty Fourteen.

Description

(string) twentyfourteen_font_url(); 

Returns (string)


Usage

  1. if ( !function_exists( 'twentyfourteen_font_url' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfourteen_font_url(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function twentyfourteen_font_url() { 
  2. $font_url = ''; 
  3. /** 
  4. * Translators: If there are characters in your language that are not supported 
  5. * by Lato, translate this to 'off'. Do not translate into your own language. 
  6. */ 
  7. if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) { 
  8. $font_url = add_query_arg( 'family', urlencode( 'Lato:300, 400, 700, 900, 300italic, 400italic, 700italic' ), "//fonts.googleapis.com/css" ); 
  9.  
  10. return $font_url;