Output the image's filename only
-
I would like to insert image file names into the ‘title’ attribute within the ‘a href=’ that is wrapped around my images. For example:
<a href="example-url" title="This image is named XXXX.jpg"><img src="path-to-image/XXXX.jpg" /></a>
I can’t find a way to get the file name only (the ‘XXXX.jpg’ part – without the path).
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Output the image's filename only’ is closed to new replies.