-
AuthorPosts
-
June 11, 2016 at 8:50 am #646489
when you hover the mouse over the top logo on the private link, it display the filename, i turned off caption and link, how do i avoid that?
June 11, 2016 at 9:31 pm #646658Hey kilimats,
Try adding this script to functions.php:
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('a').removeAttr('title'); jQuery('img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');This should remove the title attribute from the image.
Best regards,
Jordan-
This reply was modified 9 years, 5 months ago by
Jordan.
June 12, 2016 at 9:43 am #646811Is it possible to add this bugfix to the next version of enfold?
June 12, 2016 at 10:59 am #646828Hi!
That is not a bug, as it is not such an issue, but will report to kriesi and if he things it is something that can be fixed, will make sure to be done.
Thanks a lot for your understanding and for using enfold.
Regards,
BasilisAugust 18, 2018 at 8:11 pm #998760A quick question – I put this code into a new functions.php file and my site went blank – I think it’s missing some code when it’s alone in a single functions.php file connected to a child theme? Please advise :)
August 19, 2018 at 12:06 am #998817Hi,
I have tested this code in my functions.php, and it worked correctly:function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('a').removeAttr('title'); jQuery('img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');If you are using a child theme functions.php, then please ensure that this bit of code is at the very top of the file:
<?phpBest regards,
MikeAugust 19, 2018 at 12:20 am #998820That fixed it! Thank you so much – I’m not a programmer :)
August 19, 2018 at 12:37 am #998822Hi,
That is great news, unless there is anything else we can assist with, shall we close this then?Best regards,
MikeAugust 19, 2018 at 12:52 am #998823Yes, please. I hope that this helps someones else, too! :) Thanks, again!
August 19, 2018 at 1:45 am #998831Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
This reply was modified 9 years, 5 months ago by
-
AuthorPosts
- The topic ‘Image mouse hover shows filename’ is closed to new replies.
