sal0max / grav-plugin-shortcode-gallery-plusplus

A Shortcode extension to add sweet galleries with a lightbox to your Grav website.
MIT License
33 stars 8 forks source link

Method for adding image description without adding title to the image #33

Closed eoprede closed 2 years ago

eoprede commented 2 years ago

Hello, I am trying to add a long html-formatted description to the image that I want to be visible when user clicks on the image. However, the image description is also added as an image title, which means that on mouseover it gets displayed and it looks quite ugly. It would be nice if there was a way to add a description without adding a title to the image, or maybe an option like hideTitle=true/false For now I just added $('img').removeAttr('title'); to gallery-plusplus.html.twig scripts and it does what I need, but I am sure there's a better way to do it.