Audio files show up in blog editor but not on blog

Audio files show up in blog editor but not on blog

HaldaneKing
Visitor
3 0 0

I'm not quite clear what could be happening, I used the standard div element:

<div id="player"><audio controls="controls"><source src="https://cdn.shopify.com/s/files/1/0708/8429/4938/files/audiocheck.net_whitenoise.mp3?v=1683312949" type="audio/mpeg" /></audio></div>

The audio console shows up in the blog editor and I can click on it and play the audio:

 

screenshot 2.png

 

but in the published blog there's just a blank space there:

 

screenshot 3.png

 

Any ideas on how to get the audio to show up on the page like in the editor?

Replies 6 (6)

Sarwanibrahim
Shopify Partner
1 0 0

@HaldaneKing wrote:

I'm not quite clear what could be happening, I used the standard div element:

<div id="player"><audio controls="controls"><source src="https://cdn.shopify.com/s/files/1/0708/8429/4938/files/audiocheck.net_whitenoise.mp3?v=1683312949" type="audio/mpeg" /></audio></div>

The audio console shows up in the blog editor and I can click on it and play the audio:

 

screenshot 2.png

 

but in the published blog there's just a blank space there:

 

screenshot 3.png

 

Any ideas on how to get the audio to show up on the page like in the editor?


 

PaulNewton
Shopify Partner
7158 633 1488

Others do not know what you know ALWAYS provide the information others need to reproduce and inspect an issues.

Store url, storefront password, etc

https://community.shopify.com/c/shopify-design/help-us-help-you/td-p/668159 

 

Good luck. 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


HaldaneKing
Visitor
3 0 0

I've posted more information above as a reply. 

HaldaneKing
Visitor
3 0 0

As requested, the post in question is displayed here, you can see the spot after the first heading "The color spectrum doesn't mix":

https://molekule.com/blogs/all/the-colors-of-noise

 

We just moved the post over from Wordpress on April 23rd. We haven't made any changes to the blog's theme as of yet, we're still working with the "Default blog post" template. 

PaulNewton
Shopify Partner
7158 633 1488

Weird, the audio height set to auto causes the <audio> element to collapse to zero(0) height.

 

Try the following CSS either in a custom-css setting for either the template , the section, or for the entire theme.

Read  https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css 

div#player audio {
 height: inherit;
}

 

If that works then may want to tune the existing rule in the themes style.css around line 2451 that causes this display behavior keeping in mind that would affect the entire site.

img,
audio,
video {
  height: auto;
  max-width: 100%;
}

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Chris_Hantis
Shopify Partner
32 3 6

Hi There,
If you're looking for an app to solve this issue check out 
Listen Now! for all your audio player needs.
We have the ability for merchants to add either audio or text to speech to individual blog posts. 

CH