I call this jQuery function on load to do the trick (just implemented it today in fact. Let me know if it works for you. I have this saved outside of the plugin so it doesn’t get written over on updates.
function openPlaylist(){
(function($) {
$(‘.se_albumplayer .playlistWrap’).css(‘display’,’block’);
})(jQuery);
}
excellent! Works a treat. Thanks sreed27.
For those needing a little extra info I added this to the header of my theme in the <header> area:
<script>
function openPlaylist(){
(function($) {
$('.se_albumplayer .playlistWrap').css('display','block');
})(jQuery);
}
</script>
And then I added this to the <body> code:
<body onload="openPlaylist()">
one thing I noticed sreed27, is that once a track is selected from the playlist, the playlist collapses again. Any easy fix to prevent this from happening?
Hmm. Yes that does bother me too. I dug into the plugin code, and it looks like the playlistWrap.slideToggle() method is being called on four different lines. I tried commenting it out, which did keep the player from collapsing, but doing so did cause a few other errors (playback progress stopped working and songs did not automatically play on to the next)…Hope that helps a little. I’m going to live with the collapsing for now.
I’ve managed to get it to work by adjusting the app.min.js file directly.
I searched for ‘.slideToggle()’ and removed them all. note I removed the ‘.’ at the beginning also.
No errors so far and tracks play continuously.
I also changed it so that if you click the picture of the album it starts playing. I did this by changing the ‘class’ of the image on line 71 of functions.php to:
class="playPauseBtn icon-play bttn"
thanks for the coding tips.