From 6bb1f45a58dfffeb4e00842ae0aae67e2e07ebcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristopher=20Oca=C3=B1a?= Date: Wed, 30 Apr 2014 13:13:58 -0600 Subject: [PATCH] Change scripts and css enqueue Added wp_enqueue_style and changed get_bloginfo for plugins_url --- sharebar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharebar.php b/sharebar.php index 9b9744a..6ab22c5 100644 --- a/sharebar.php +++ b/sharebar.php @@ -118,8 +118,8 @@ function sharebar_header(){ if(function_exists('wp_enqueue_script') && (is_single() || is_page())) { wp_enqueue_script('jquery'); - wp_enqueue_script('sharebar', get_bloginfo('wpurl').'/wp-content/plugins/sharebar/js/sharebar.js',array(),false,true); - echo ''; + wp_enqueue_script('sharebar', plugins_url('js/sharebar.js', __FILE__), array('jquery'),false,true); + wp_enqueue_style( 'sharebar_style', plugins_url('css/sharebar.css', __FILE__)); } }