Caption in Radnom Image

FelixFelixFelix / 2013-10-29 14:10:44   

I already managed to switch on the Titel in the Random Image Pluin
This Thread helpt me a los: indexhibit.org/forum/thread/16096/
But I can't figure out how to activate also the caption.
How can I do this?

arsondpi / 2013-10-29 14:34:16   

Not sure if this will work but try it out:

$s .= "<img src='" . $OBJ->vars->images[0][$rand]['media_path'] . "' /><p class='random_img_title'>" . $OBJ->vars->images[0][$rand]['media_title'] . "</p><p class='random_img_caption'>" . $OBJ->vars->images[0][$rand]['media_caption'] . "</p>";

arsondpi / 2013-10-29 14:35:22   

*
.random_img_title
and
.random_img_caption
are the css classes you can use to affect the title and the caption.
I hope the solution above works.

FelixFelixFelix / 2013-10-29 16:36:24   

Yes that worked! Thanks!

This thread has been closed, thank you.