Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
the default (background-)colors of Wordpress standalone player would be nice and decent (grey), but you hardcoded colors in your module, that will hardly ever fit on any site (red and blue).
Function in audiofield.players.inc with hardcoded colors: theme_audiofield_players_wpaudioplayer()
Please either leave default colors as-is, or provide a way to overwrite (hook or setting) your very special color decisions.
Comments
Comment #1
tamerzg CreditAttribution: tamerzg commentedFor now you can change the colors by overriding theme_audiofield_players_wpaudioplayer() function in your template.php
I ll leave this issue active, as a plan to add a way in admin configuration form to change the colors and other settings of players.
Comment #2
indigoxela CreditAttribution: indigoxela commentedHi tamerzg,
you are absolutely right, I forgot the theme hooks.
If somebody needs a code example, something like this would go to your themes' template.php
YOURTHEMENAME is of course the name of your theme.
An overview of possible player options is here: http://wpaudioplayer.com/standalone/
Comment #3
joegl CreditAttribution: joegl commentedI just want to say that the above comment helped but as the code has changed in two years this is what I used:
The hex codes are the 0xXXXXXX (leave the 0x in there and just change the hex color values). Color scheme info is at the bottom of the page here: http://wpaudioplayer.com/standalone/
Comment #4
AlanT CreditAttribution: AlanT commentedWOW! 3 years, and this still hasn't been fixed????
Looks like the only folks who can use media in Drupal are the coders. So far, this is the ONLY option that seems to work with multi-value filefields to give both player and download of files, and the color choice is horrendous!
Comment #5
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedThis has been fixed for quite some time.