-
AuthorPosts
-
March 15, 2016 at 4:55 pm #598490
Hi guys,
I have a problem with the hover text on my website. I’m using flickr justified gallery to get the images for my website and I’m using masonry gallery to display them. Every time I move the cursor on the picture, it shows the hover text as a complete HTML text. See here:
https://www.dropbox.com/s/hhsksc3n061asap/Screenshot%202016-03-15%2015.49.11.png?dl=0When I try to edit them, the hyperlink doesn’t work anymore. The hyperlink is for the flickr page. See here:
https://www.dropbox.com/home/Screenshots?preview=Screenshot+2016-03-15+15.49.31.pngWhat code should I implement to hide the hover (HTML) text? Thanks in advance for your help
March 15, 2016 at 5:02 pm #598494Hi FelixB!
Please refer to this post – http://kriesi.at/documentation/enfold/remove-image-titles-that-show-up-when-you-hover-on-images/
Cheers!
YigitMarch 15, 2016 at 5:04 pm #598495Hi Yigit,
thanks for your reply. I’ve implemented the code but it shows nothing if I click on the image. The text have to still be there to give the credits for the owner of the pictures.
Kind regards,
FelixMarch 15, 2016 at 5:26 pm #598506Hi!
Can you please remove the code and post the link to your page? :)
Best regards,
YigitMarch 15, 2016 at 5:34 pm #598511There you go: https://yourweler.com/trauringe-celle/ :)
thanks in advance man!
March 15, 2016 at 10:29 pm #598654Hi Yigit, are you still there?
March 15, 2016 at 11:14 pm #598682Hi!
Please use 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');
Cheers!
YigitMarch 16, 2016 at 10:32 pm #599279Hi Yigit,
I’ve implemented the code, but the credits for the image uploader completely disappeared. As I mentioned above, I do still want to keep those texts and just want to hide the hover text. Please take a look again :)
Kind regards,
FelixMarch 17, 2016 at 3:00 pm #599604Hi Yigit,
could you please take a look again? Thanks in advance,
Kind regards,
FelixMarch 17, 2016 at 5:25 pm #599787Hi!
Please change the code to following onefunction remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.av-masonry-entry, .av-masonry-entry *').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
P.S.: For your information, this is a browser feature :)
Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.