How to add class to the album play button?

greengeek
greengeek
Offline
0
I am trying to stylize the play button that is at the left of the songs in the album view. I noticed it does not have any img class tag tied to it. I have been able to figure out how to style it using firebug, but I can not find out where I need to make the changes in the actual code. I added this line in my album.css


img.my_new_style {
padding-top: 6px;
}


I however can not find out how to add the class tag into the html. It appears it may be buried in the javascript.

Viewing the page source of an album page, I see this line:

img title="Play" alt="Play" src="/plugins/muscolplayers/jwplayer/jwplayer/buttons/play.png"


I want it to say this:

img class="my_new_style" title="Play" alt="Play" src="/plugins/muscolplayers/jwplayer/jwplayer/buttons/play.png"


I am guessing it might be in the plugins\\muscolplayers\\jwplayer\\jwplayer.php, but I can not find out where, or what to edit. What would I need to edit to put this class tag into the above line?

Thanks
Responses (2)
  • Accepted Answer

    Wednesday, September 21 2011, 10:30 AM - #Permalink
    0
    yes it is in this file.

    just search for

    JHTML::image($jwplayer_root.'buttons/play.png',JText::_('Play'),array("title" => JText::_('Play')) )

    (lines 257 and 261 approx)

    on the last paramter, the array, add this:

    array("title" => JText::_('Play'), "class" => "my_new_style")
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Thursday, September 22 2011, 12:42 AM - #Permalink
    0
    Awesome! Thanks, Germi. That worked!
    The reply is currently minimized Show
Your Reply