Random Image - Display Image Text with Image

Looking for a way to add the 'Title' from the image properties as a caption on the random photo. Does anyone have any good recommendation how to do this?

View Replies:
MrKDilkington replied on at Permalink Reply
Hi tommyh,

Are you referring to this Random Image block?
tommyh replied on at Permalink Reply
Thanks for the reply. I was working with this one from jordanlev:

Will this other one do the trick of showing the image title under the image?

I must also point out that this is a 5.6 site.
TMDesigns replied on at Permalink Reply
$title = $f->getTitle()
echo $title;

I'd set up a new block override or theme then add this code above where you want it.

If you want help PM me and i can take a look
Steevb replied on at Permalink Reply
A quick and dirty option.
Add following code to bottom of the view.php file and edit the image title in the image properties.
<div class="title"><?php  echo $img->title;?></div>

Then if needed style it from the view.css file.