Support » Plugin: MP3-jPlayer » Widget Issue

  • 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?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author simon.ward


    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.


    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


    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.

    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.