Support » Plugins and Hacks » [nggallery] Image description :: ALT instead of TITLE

  • Resolved mrkingid

    (@mrkingid)


    Hey, just wondering how I can display the ‘alt’ text instead of the ‘title’ text.

    I am using [nggallery id=13 template=caption] and it works to display a caption. I just want the caption to use ‘alt’ reference.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • mrkingid

    (@mrkingid)

    GOT TI!!!

    in the gallery-caption.php file you need to change

    <span><?php echo $image->caption ?></span>

    to

    <span><?php echo $image->alttext ?></span>

    mrkingid

    (@mrkingid)

    It would be great if there was an option for this in the admin area.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[nggallery] Image description :: ALT instead of TITLE’ is closed to new replies.