• Good day!

    I have placed a NextGen widget in my sidebar showing random images from a specified folder.

    The question is:

    How do I display the captions, descriptions or image title of the random picture that shows up?

    Many thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter adri97

    (@adri97)

    re-posting!

    Thread Starter adri97

    (@adri97)

    Please help.

    I have tried using shortcodes and the caption shortcode but I cannot make appear in the right sidebar widget. Is what I am trying to do even possible?

    Caption shows up OK if the gallery is on a normal post (using shortcode)

    Thanks in advance!

    It’s possible but you are going to have to mess with code.

    If you’re up for it open up wp-content/plugins/nextgen-gallery/widgets/widgets.php and round about line 330 add a line that has something to do with $out = $description; or $out = $alttext; for image name. It needs to be after echo $out . '</a>'."\n";.

    As that sits it is not very pretty so you might want to add a <div> tag surrounding that and give it a class name that you define in styles.css so that you can try and reduce font size and get it placed under the image.

    Hope that helps

    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGen Gallery] How to show captions in sidebar widget’ is closed to new replies.