• Resolved bmayer

    (@bmayer)


    For my gallery I want the alt text to appear below the thumbnail instead of the description. I want the description to appear when they click the thumbnail. There used to be a “hack” to edit one of the .php files but with version 2.0.66 this file doesn’t exist. Which file do you edit to change the caption to be the alt text? I use the shortcode for caption but it still shows the description which is too long.

    nextgen-gallery/view/gallery-caption.php

    php echo $image->caption
    Change to:
    php echo $image->alttext

    Thanks,
    Belinda

    https://ww.wp.xz.cn/plugins/nextgen-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @bmayer – You look to be on the right path with those changes … you may need to clear your image cache under Gallery > Other Options > Miscellaneous and/or re-insert the display if you used the IGW (“green button”) to insert the display with.

    – Cais.

    Thread Starter bmayer

    (@bmayer)

    Where do I make these changes though? It used to be in the gallery-caption.php file which was in the view subfolder, neither of which I can find in version 2.0.

    Plugin Contributor photocrati

    (@photocrati)

    @bmayer – See this path: ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery-caption.php

    Although I would recommend making a copy to work from and ensuring you have a back-up as it may get over-written with theme/plugin updates.

    These are the locations we also current recommend for saving custom templates:
    /wp-content/themes/[yourtheme]/nggallery/
    … or …
    /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/

    – Cais.

    Thread Starter bmayer

    (@bmayer)

    Success! Thanks so much for your help, I never would have found the file.

    It would be great if this could be made into an option in the dashboard.

    Once again, thanks!

    Plugin Contributor photocrati

    (@photocrati)

    @bmayer – You are more than welcome to share your thoughts and ideas on this “option in the dashboard” as a Feature Request here: http://www.nextgen-gallery.com/feature-voting/

    Thanks for letting us know this worked out for you, too.

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Caption text’ is closed to new replies.