Widget Issue (5 posts)

  1. @satori83
    Posted 2 years ago #

    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?



  2. simon.ward
    Plugin Author

    Posted 2 years ago #

    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.


  3. @satori83
    Posted 2 years ago #

    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?

  4. simon.ward
    Plugin Author

    Posted 2 years ago #

    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.

  5. @satori83
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.