Hi, Ive tried following the steps to remove the text that appears when you hover an image by adding this to the theme function but its not working:
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’);
Hey envisageiam,
It looks like you have the function correct, I see you have a error in your console for
Uncaught ReferenceError: jQuery is not defined
Do you have Enfold Theme Options > Performance > Disable Template Builder Elements > Always load all elements set? If not please do.
Or do you have “Load jQuery in your footer” checked? Please uncheck.
If this doesn’t help, please include a admin login in the private content area so we can take a closer look.
Best regards,
Mike
Where do I uncheck “Load jQuery in your footer” at?
Hi,
Odd that two jQuery settings are not showing in the Enfold Theme Options > Performance panel
I see that your function is calling jQuery before jQuery loads, which explains the error, but the function is loading in the footer.
I found the wpengine has had this issue before and the solution was:
define(‘CONCATENATE_SCRIPTS’, false);
must use the correct syntax to work
put this in the bottom of wp-config.php
Please ask wpengine if this solution will load jQuery before the footer.
Best regards,
Mike