David 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.

Related posts:

Hacking the SoundCloud player

More html parameters for the player

Program an entirely customized player (coding knowledge required)

  • http://www.deepershades.net Lars

    curious about the Paypal part?! How do you link to the donation page w/ all info included etc.? Paypal only gives u a form, no? That couldn't be included in the BUY URL, or could it?

    ty,
    Lars

  • p90xexercise

    Message
    p90x, you do not have permission to access this page. This could be due to one of several reasons:

    1.Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    2.If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.