Tagged: hover, html, image caption, links, Masonry Gallery, tooltip
-
AuthorPosts
-
February 24, 2016 at 9:28 pm #588649February 26, 2016 at 5:26 pm #589896
Hey ghrahams!
Please refer to this post – http://kriesi.at/documentation/enfold/remove-image-titles-that-show-up-when-you-hover-on-images/
Regards,
YigitFebruary 27, 2016 at 12:39 am #590081Thanks for the assistance!
This almost works. The problem is that the function removes the caption everywhere. I still want the caption to still display in the lightbo of images, just not on hover over the images. When you hover it shows the HTML as pictured in the screenshot attached above.
February 29, 2016 at 7:14 pm #591036Hey!
Please try changing the code to following one
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.flex_column a').removeAttr('title'); jQuery('.flex_column img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
Cheers!
YigitFebruary 19, 2017 at 12:28 am #748921@ghrahams did @Yigit ‘s last code snippet worked for you?
I would like to achieve exactly the same as you:
- Masonry Gallery
- when hovering an image, no title attribute should be visible (like here in docu)
- but when opening the lightbox of this image, the HTML code I entered in the image description should be shown!
The snippet of Yigit does not work for me, because then also the lightbox text including links in the image caption is deleted.
February 25, 2017 at 11:03 am #751747Hi Chris,
Have you tried the code as following?
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('#wrap_all a').removeAttr('title'); jQuery('#wrap_all img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
If you have and that did not work for you, please start a new thread and attach temporary admin logins in private content field. If you post them here, they will be visible to creator of this thread as well.
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.