How to display different text in one place depending on mouseover on images
-
Hi there!
I am a little new to wordpress so please have patience ??
I am trying to add a text box above a carousel of images where each image you hover on will show the different name in the same text box above. Does anyone know how to do this/if there is a good plugin for this?
I found this previous answer 5 years ago but I am unsure what ‘YOUR_TARGET_DIV_ID_HERE’ means and where to find the <img> tag to add this to:
Add this to the <img> tag for each of your images (in the HTML view):
onMouseover=”document.getElementById(‘YOUR_TARGET_DIV_ID_HERE’).innerHTML = ‘Text revelevant to this image here’;”
I have no idea if there is a plugin to do this in a more automated fashion, but this should work.
Many thanks in advance for your help!
Alexa
- The topic ‘How to display different text in one place depending on mouseover on images’ is closed to new replies.