Localize scripts

This commit is contained in:
Brian Miyaji
2014-01-20 11:48:12 +11:00
parent 62501fd76a
commit 12f3d9cf5a
6 changed files with 20 additions and 19 deletions

View File

@@ -1,8 +1,7 @@
<?php
function sportspress_enqueue_scripts() {
// Styles
wp_register_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array( 'dashicons' ), time() );
wp_enqueue_style( 'sportspress');
wp_enqueue_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array( 'dashicons' ), time() );
// Scripts
wp_enqueue_script( 'jquery' );