Page 1 of 1

How to add tooltip on all thumbnail images with a specific class

Posted: Mon Nov 11, 2024 5:26 am
by jbananak
I have a large project. How do I set a tooltip "Click to enlarge" on all images (in many htm files/snippets) that have a specific style class so that it appears when I hover over the image. I set the thumbnail as popup so that it enlarges when I click on the image.
Thanks in advance.

Re: How to add tooltip on all thumbnail images with a specific class

Posted: Wed Nov 13, 2024 3:10 am
by ChoccieMuffin
You could try a search and replace in the code of your topics and snippets.

For example, I have this in the code in my document:
img src="../../Images/Test_Dialog box.jpg" class="Thumbnail"

If you want to add the tooltip that says "Click to enlarge" on all images with class=Thumbnail":
search for
class="Thumbnail"
and replace with
class="Thumbnail" title="Click to enlarge"

Tip: Don't do it on the whole project, because class="Thumbnail" might appear in other odd places.