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?
Hey 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
Is it possible to add this bugfix to the next version of enfold?
Hi!
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,
Basilis
A 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 :)
Hi,
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:
<?php
Best regards,
Mike
That fixed it! Thank you so much – I’m not a programmer :)
Hi,
That is great news, unless there is anything else we can assist with, shall we close this then?
Best regards,
Mike
Yes, please. I hope that this helps someones else, too! :) Thanks, again!
Hi,
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