So it’s been brought to my attention that some audio posts, ie: those with external sources such as Spotify and Soundcloud, aren’t working on my themes. That’s because at some point, Tumblr updated their theme documentation so that there was separate code for these “embedded audio” posts, which of course my themes don’t have.
Anyways, it’s a bit of a process to fix, but I have zero intention of going through all my themes and updating their code so. Here is how to make it work with my themes.
Look in the code for {block:Audio}. There’s going to be a lot of code between it and {/block:Audio} and you’re going to have to wrestle a bit with it, I’m sorry.
Anything between the {block:Caption} tags or {block:ifShowCaption} tags can be left untouched. The chunk of code directly before it is what you’re going to want to manipulate. This is what it looks like on Theme #24: New Generation
This is what it looks like on Theme #12: Swordland
Hopefully you get the gist. Put {block:AudioPlayer} directly in front of it, and {/block:AudioPlayer} directly after it. This makes it so that the code will only be rendered if the source of the audio post is directly from Tumblr.
Next, directly after the code you just added, put this code:
Change the -500 to whatever size posts you’re using, either 500, 400, or 250. This makes it so that on posts with external sources, it’ll just use that player instead rather than trying to wrangle it into my nightmare code for audio posts.
After the edits, it should look like this (changes highlighted):
Anyways, apologies for the really long post, hope this was helpful. If you have any issues finding the chunk of code you need to edit, let me know.