312 posts
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Had an item featured in an Envato Bundle
+7 more
ceasar says

Hai,

I have a problem with path settings in my plugin

At this moment I have the following

function hook_plugin_init()
{
if (!is_admin()) { wp_enqueue_style( 'ytplaylist_style', plugins_url('/youtubeplaylist/css/youtubeplaylist.css'), null, null, 'screen' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script('ytplaylist_script', plugins_url('/js/jquery.youtubeplaylist-min.js', __FILE__), null, null , true );
   }
}

Now some of the buyers have problems that the css is not loaded

One buyer has this path setting

http://url/new/wp-content/plugins/youtube-seo-playlist-for-wordpress/js/jquery.youtubeplaylist-min.js http://url/new/wp-content/plugins/youtubeplaylist/css/youtubeplaylist.css

The js is loaded but the css is not.

Any wordpress coder can help me with this ?

Thanks

312 posts
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Had an item featured in an Envato Bundle
+7 more
ceasar says

Ahhh. I think I found the problem

I forgot the file in the css declaration

by
by
by
by
by
by