Hi,
I need to remove the title showing when the mouse hovers over any images. I tried several CSS found in previous tickets and also the following PHP code (cleaning the cache etc) but nothing seems to work.
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘img’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);
Could you please help me with this?
Many thanks
Hey Lura1988,
You can remove title and description of images in the media library.
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Best regards,
Victoria
Hi Victoria,
thanks for your answer.
I need the title in the media library cause sometimes I have two different sizes of the logo etc.
Thanks for you help
Hi Lura1988,
You should really have a child theme and do modifications there.
Try the code below, I changed the single quotes, the ones above are not recognized as code.
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery('img').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
It worked!!
Many thanks :)
Hi,
We’re glad that Victoria was able to help! If you have any other questions or issues, feel free to post them here on the forum and we will gladly try to help you.
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads
Thank you for using Enfold!
Sarah