twentyfourteen_wpcom_styles

Enqueue our WP.com styles for front-end.

Description

twentyfourteen_wpcom_styles(); 

Loads after style.css so we can add overrides.


Usage

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

Defined (1)

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

/inc/wpcom.php  
  1. function twentyfourteen_wpcom_styles() { 
  2. wp_enqueue_style( 'twentyfourteen-wpcom-style', get_template_directory_uri() . '/css/style-wpcom.css', array( 'twentyfourteen-style' ), '20131112' ); 
  3.  
  4. if ( is_rtl() ) { 
  5. wp_enqueue_style( 'twentyfourteen-wpcom-rtl-style', get_template_directory_uri() . '/css/style-wpcom-rtl.css', array( 'twentyfourteen-wpcom-style' ), '20131114' );