How do i add an Id or class inside an open embed include?

I’m using this resource: Open embed | Jekyll Codex to attach an mp3 file to my site :

/assets/audio/sales-call.mp3
{% include open-embed.html %}

with that code it will render tihs:

<audio controls="controls" ><source src="/assets/audio/sales-call.mp3" type="audio/mpeg">Your browser does not support the audio element.</audio>

however I want to edit that and add an audioPlayer class to that <audio> tag what should I do ??

NVM, i already figured it out , inside the open-embed.html file that’s included.
just find this line in mp3_embed() function, it’s in line 89
var newInnerHTML = '<audio class="addClassNameHere"';

1 Like