WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WPaudio MP3 Player] External stylesheet for the player and javascript in footer? (3 posts)

  1. Christine
    Member
    Posted 4 years ago #

    Hi,
    I wondered if there was anyway to somehow disable the output of the players style sheet in the header so I can add it to my main style sheet instead for optimization.
    I also wondered if it could be possible for the JavaScript it generates in the header to be pushed to the footer instead- I'm using the "JavaScript to footer" plugin and it doesn't seem to work for the following code which is still in the header, (but it does work for the other JavaScript relating to it):

    <script type="text/javascript">
    /* <![CDATA[ */
    var wpa = Array();
    var wpa_url = 'http://example/wp-content/plugins/wpaudio-mp3-player';
    var wpa_params = Array();
    var wpa_pref_bar = true;
    var wpa_pref_sub = true;
    /* ]]> */
    </script>

    Thanks

    http://wordpress.org/extend/plugins/wpaudio-mp3-player/

  2. toddiceton
    Member
    Posted 4 years ago #

    The scripts that follow it depend on this block of code, so I wouldn't recommend trying too hard to move it. I'll try to condense this though.

  3. Christine
    Member
    Posted 4 years ago #

    Thanks for getting back on this. Thats fine then, I don't know much about javascript so I thought it best to ask :)

Topic Closed

This topic has been closed to new replies.

About this Topic