Display filenames in Media Library Grid View
-
Ok, so I had a website where I wanted to display filenames on top of each image thumbnail in the grid view for the media Library browser. I found this snippet: https://xplus3.net/2013/09/26/add-file-name-wordpress-media-browser/ , tried it, and for the life of me could not get it to work without breaking the media browser entirely (clicking on the add media button would do nothing).
In a desperate attempt, I altered the Media-template core file by adding
<div class="filename"> {{ data.filename }} </div>
underneath the image thumbnail call.
This worked for WordPress 4.2 and 4.3, but with the upgrade to 4.4 I cannot for the life of me get the filename to display on the thumbnails. I would revert back to 4.3 and use my old core file, but it got lost in the site launch and now I’m stuck.This https://i.stack.imgur.com/6yMIX.png is an image of what I’m trying to make happen.
If anyone has any idea why my hack no longer works, or if there’s a better way to handle this, please let me know!
Thanks in advance for the help!
(also if this is the wrong subforum for this, I’m sorry!)
- The topic ‘Display filenames in Media Library Grid View’ is closed to new replies.