332 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

332 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by