WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [nggallery] Image description :: ALT instead of TITLE (3 posts)

  1. mrkingid
    Member
    Posted 4 years ago #

    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.

  2. mrkingid
    Member
    Posted 4 years ago #

    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>

  3. mrkingid
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic