/post

Changing the color of Tumblr Audio player

Posted by adrengski on Thursday, September 29th, 2011
Tagged as: advance tutorials


Tumblr allows us to change our audio player into three different colors Black, white and Grey. To do that, enable custom HTML, look for the codes {AudioPlayerBlack} or {AudioPlayerWhite} or {AudioPlayerGrey} depending on your current audio player’s color. Delete that and replace it with any of those other codes. Fox example, id you want to make your audio player white, replace the codes with

{AudioPlayerWhite}

If you want it grey, change it to

{AudioPlayerGrey}

Note: Changing the color part in the codes other than white, black and Grey wouldn’t do anything.

But there are are times when your aesthetic eyes doesn’t like those default colors and would rather have green perhaps for an audio player. So here’s how to change this audio player,

Into any color you want like this:

Now, let’s skip all the jibber jabber and get on how to do this.

First, Go to Customize page, click on the Theme Tab and enable the “Use custom HTML” option.

After that, a bunch of codes would appear. But don’t let that intimidate you.All you have to do with that is press Ctrl+F and look for these codes:

{AudioPlayerBlack} or {AudioPlayerGrey} or {AudioPlayerWhite}

depending on your theme’s original audio player color.

Next, copy these codes and paste it below that code:

<script type="text/javascript" language="javascript" src="http://assets.tumblr.com/javascript/tumblelog.js?7"></script>

<script type="text/javascript" src="/api/read/json?id={PostID}"></script>

<script type="text/javascript">

    var color = "Your_color_here";

    var player = tumblr_api_read['posts'][0]['audio-player'].replace("color=FFFFFF", "color=" + color);

    replaceIfFlash(9, "audio_player_{PostID}", player);

</script>

Replace Your_color_here with a hexadecimal color. You can use your Photoshop color picker to do that or if you don’t have Photoshop, you can pick colors here. Don’t forget to remove the “#” sign before the color. For example, if your color is #3b3b3b, you only have to put 3b3b3b.

So that’s it. The color wouldn’t change in your customize page but it would in your blog. So don’t panic if it doesn’t change. Try uploading an audio file and test it if it worked.

Again, for questions, don’t hesitate to drop something on my ask box.


7 notes | Comments

Comment

blog comments powered by Disqus

Notes

  1. html-and-etc reblogged this from laprisieme
  2. tutobx posted this
/ask

Questions! Questions!


Before asking a question, make sure to check the FAQs page or the Answers page first incase it's already answered there. If it isn't then ask away!

All questions/TAs, anon or not, will be published on the Answers page so check it if it's already there. The post will be tagged under your URL , too, so tracking your URLs would be a nice way to notify you.

Also note that I may not be able to answer questions ASAP since unfortunately, I also have this evil stuff called "Real life" and it requires me to do things like "Working" and "Socializing". Rest assured though, that I will be answering all questions whenever I go online and if there's any.

DONATE! On a related note, You could also increase the chance of getting answered immediately by Donating! You see, if you donate, that would mean more moolah. If there's moolah around, I don't have to work that much. And if I don't have to work that much, that would mean more time in answering your queries! I mean, that's the only thing that's keeping me away from here anyway. So yeah, a buck wouldn't hurt, right?


Scroll to top