265 posts
  • Author had a Free File of the Month
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Referred between 50 and 99 users
  • Netherlands
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Envato Studio (Microlancer) Beta Tester
  • Has been a member for 4-5 years
+1 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

265 posts
  • Author had a Free File of the Month
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Referred between 50 and 99 users
  • Netherlands
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Envato Studio (Microlancer) Beta Tester
  • Has been a member for 4-5 years
+1 more
ceasar says

Ahhh. I think I found the problem

I forgot the file in the css declaration

by
by
by
by
by
by