Image filename display on mousover
-
Hi! I’ve got a serious issue with something apparently simple. On my website foodorico.fr, all images and icon display filename on mousover.
I’ve tried to implement the following code :
// Title Removal from WordPress image
add_filter( ‘wp_get_attachment_image_attributes’, ‘remove_image_text’);
function remove_image_text( $attr ) {
unset($attr[‘title’]);
return $attr;
}But of course it doesn’t work as this is not the image title nor the image/icon attribute which displays on mouseover but the filename itself !
I’ve checked several options, none of them work. However, I can see there’s a way, as for instance you can check that on wordpress itself (https://wordpress.com/support/) , none of the 4 images display anything on mouseover…
Some help would be more than welcome !! Thanks community
-
Hi there,
You’re seeing the filename, because that’s what’s set as the HTML
titleattribute for the image. But WordPress doesn’t automatically set atitleattribute on image files, and I don’t see this happening if I add an image to a post on my site.I took a look at the source code for your post in my browser, and it looks like those images on your front page, including the various icons, are being added via an Elementor widget, so it’s most likely Elementor that’s adding those title attributes to the image HTML. So I’d recommend you check your Elementor settings, and contact their support directly for more help with this.
https://wordpress.org/support/plugin/elementor/
Just for future reference, the forum you’ve posted here is for the hosting provider, WordPress.com.
Support for the open source version of WordPress you’re using on foodorico.fr, is provided by the WordPress.org community who makes that software, in their forums at https://wordpress.org/support/forums/
-
Thanks for your answer! I already contacted them but it seems they are a bit slow to answer. Thanks for your precious help !
-
Please be aware that the WordPress.org community is staffed by volunteers of the open source project, so there’s no dedicated “support team” there to answer questions, so you’ll just need to be patient. :)
Best of luck!
- The topic ‘Image filename display on mousover’ is closed to new replies.