Friday Fun: Customize the ‘Buy’ And ‘Download’ Buttons on Your Player Embeds
A question we’ve been asked quite a lot in the past weeks was how to change the text of the ‘Buy’ and ‘Download’ buttons. It only takes a couple of little tweaks to the html codes of your SoundCloud embed players so here’s how to do it.
That’s how my embedded track looks like on my blog when I use the regular html code. Note that for the Buy button to show in the player, you’ll need to have added a url to the Buy field in your track or set settings:
Now to change the text on the Buy and Download buttons, you’ll need to make some changes in the parameters of the code. I’ve bolded the parts that need to be added, don’t forget to add the parameters twice in the code:
The string added to the code between the track url and the end quotation mark includes both the changes to the Download and Buy buttons &text_download_track=Free download!&text_buy_track=Purchase! and this is the result:
This of course works for the artwork players too, here’s how this looks:
Quite an easy way to direct your listeners to social micropayment service Flattr or ask them for a donation via PayPal, don’t you think? We’re sure you’ll have many other examples for creative ways to use these little tweaks, so please share them with us in the comments for everyone else in the community to get inspired.
Program an entirely customized player (coding knowledge required)