Forums

NextGEN Gallery
Line break in thumb description causes wrong output of ALT-Tag (4 posts)

  1. csigncsign
    Member
    Posted 6 months ago #

    Hi,

    in the description field of the thumbnails I need to add a line break:

    ABRICOTÉE
    © Chris Westermann

    Screenshot: http://i39.tinypic.com/9qbcxu.jpg

    So far, so good, but at frontend, when hovering over the image, it shows the code tags:

    Screenshot: http://i41.tinypic.com/bhlk4y.jpg

    How can I avoid this strange output in frontend, when I need to use line breaks within the thumbnail description?

    Thanks.

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. mikeg9999
    Member
    Posted 6 months ago #

    Unfortunately thats how Nextgen currently works - backwards.

    For some reason the image Description field (which can be long and contain html) is used as the Alt and Title value in the href and img statements. It does this in several pieces of code.

    It should (in my view) use the images Alt/Title field (which is usually short and cannot contain html) instead.

    Your lucky, my descriptions are huge with html tables so the effect on my site was much much worse (nb. it also clutters up your page source).

    I display galleries on my site using [nggallery id=nnn template=caption] and had to customise .../view/gallery-caption.php so took the opportunity to style the output a bit. eg http://japaneseartsgallery.com/gallery/woodblock-prints/toshi-yoshida/. Previously if you hovered over a thumbnail you would have seen a html table displayed.

    I live in hope that one day enough people will notice this and Alex will change all the code.

  3. mikeg9999
    Member
    Posted 6 months ago #

    Oops nearly forgot.

    Sometimes its the Caption variable that is the offender as it's set to equal Description but I think it should be set to Alt/Title.

    Caption imples 'small' which to me equals Alt/Title (also being small) whereas Description implies 'large'.

  4. mikeg9999
    Member
    Posted 1 month ago #

    I've posted a full description with screen captures of the issues here NextGen Gallery Caption Problem

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.