twentyfifteen_wpcom_scripts

Enqueue our WP.com styles for front-end.

Description

twentyfifteen_wpcom_scripts(); 

Loads after style.css so we can add overrides.


Usage

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

Defined (1)

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

/inc/wpcom.php  
  1. function twentyfifteen_wpcom_scripts() { 
  2. wp_enqueue_style( 'twentyfifteen-wpcom-style', get_template_directory_uri() . '/css/style-wpcom.css', array( 'twentyfifteen-style' ), '20141202' ); 
  3.  
  4. wp_enqueue_script( 'twentyfifteen-wpcom-js', get_template_directory_uri() . '/js/wpcom.js', array( 'jquery' ), '20141208', true );