Jump to content

Use CSS to show media metadata

Recommended Posts

Hi, kind of new here. I use to be member several years ago.  Anyways, I've worked some with css over the years and can usually find what I need to change using the inspect codes, but not this time. On my website which is wordpress using Divi theme. I need to show the date and time of the last update of a media file. The media files, MP3 files, are updated daily with a media overwrite plugin. I have be researching the issues for week now and having no luck. I hope someone here can tell me if it ever possible to use css to put the metadate under a media html link. 

The link is

 <a href="URL.mp3">File Name</a>

On the public side it would show like the below example but the last updated would change each time the file updates.  I thought the css would be a way to also show this.   

File Link: audio1.mp3
Last Updated:Fri Jun 12, 2020 03:20:13 pm

File Link: audio2.mp3
Last Updated:Fri Jun 14, 2020 05:20:13 pm

Thank you for your time

Edited by kimber
Link to post
Share on other sites

CSS cannot obtain metadata from files. Even Javascript cannot do that, you would need a server-side language to get that information and display it on the page.

  • Thanks 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...