Skip to content

Commit

Permalink
Merge pull request #4 from uconn/fix/plugin_css_path
Browse files Browse the repository at this point in the history
Fixed path for banner css
  • Loading branch information
jrthib committed Jul 18, 2014
2 parents 151c941 + eecc318 commit 8927ec1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class-uconn-banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ public function load_plugin_textdomain() {
* @since 1.0.0
*/
public function enqueue_styles() {

wp_enqueue_style( $this->plugin_slug . '-banner-styles', '/wp-content/plugins/uconn-banner-wp/vendor/banner/_site/banner.css', array(), self::VERSION );
$css_url = plugins_url( 'vendor/banner/_site/banner.css', __FILE__ );
wp_enqueue_style( $this->plugin_slug . '-banner-styles', $css_url, array(), self::VERSION );

}

Expand All @@ -284,7 +284,7 @@ public function enqueue_scripts() {
public function uconn_banner_html() {

include('views/public.php');

}

/**
Expand All @@ -298,4 +298,4 @@ public function uconn_banner_head() {

}

}
}

0 comments on commit 8927ec1

Please sign in to comment.