Title: Widget Issue
Last modified: August 21, 2016

---

# Widget Issue

 *  [@satori83](https://wordpress.org/support/users/satori83/)
 * (@satori83)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/)
 * I love your plugin, its totally sweet to work with. Although because of the way
   I styled the background, I need to use the shortcode version in the widget area.
   That wasn’t working so I added
    add_filter(‘widget_text’, ‘do_shortcode’); to
   my functions.php That generated the player but stripped css. Do you have any 
   way around this?
 * [http://www.g1ftedmusic.com/](http://www.g1ftedmusic.com/)
 * [http://wordpress.org/extend/plugins/mp3-jplayer/](http://wordpress.org/extend/plugins/mp3-jplayer/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [simon.ward](https://wordpress.org/support/users/simonward-1/)
 * (@simonward-1)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/#post-3669262)
 * Using `do_shortcode` is pretty much equivalent to using the player’s template
   tag, so you’d still need to request the scripts (using `mp3j_addscripts()`) in
   the page header on any pages you want players on.
 * Please see ‘Template Tag Help’ on the player settings page for a quick example
   on how to set it up.
 * Simon
 *  Thread Starter [@satori83](https://wordpress.org/support/users/satori83/)
 * (@satori83)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/#post-3669265)
 * Awesome that worked! The other work around you provided about throwing the widget
   in there also worked. Is one better than the other?
 * Since they work fine on the other pages where the shortcodes will be (home page
   was widgetized by dev), will it cause an issue if the scripts are called twice
   now that I threw
    `<?php mp3j_addscripts(); ?>` in header?
 *  Plugin Author [simon.ward](https://wordpress.org/support/users/simonward-1/)
 * (@simonward-1)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/#post-3669327)
 * Both will do the same thing, though it normally makes more sense to use the function
   to add the scripts.
 * What I’d like to know is why the widget gets found but your shortcodes don’t 
   get processed in it, is this still the case?
 * No it’s fine, the scripts can only be added once.
 *  Thread Starter [@satori83](https://wordpress.org/support/users/satori83/)
 * (@satori83)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/#post-3669332)
 * No its fine now after that function. I had a custom theme built by Psd2Html and
   the way they coded it is real wacky. Thanks for all you help though. I’ll throw
   you a donation when I wrap this project up.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Widget Issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mp3-jplayer_c3a59d.svg)
 * [MP3-jPlayer](https://wordpress.org/plugins/mp3-jplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mp3-jplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mp3-jplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/mp3-jplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mp3-jplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mp3-jplayer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [@satori83](https://wordpress.org/support/users/satori83/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/widget-issue-8/#post-3669332)
 * Status: not resolved