If you have defined titles for the media images in your WordPress website and want to disable the title when you hover on your image on front-end of the website then it could be a real pain because it will require editing to each media image and manually removing of the title can take a lot of time.

hide image title on hover

In order to remove all the title from all the media images of WordPress in bulk, the below code can used in the functions.php file of your Child theme.

Copy to Clipboard

OR

the below JavaScript code can be used before the close of your head tag. For Avada theme users, you can put the below code in Theme Options -> Advanced -> Code Fields -> Space Before Head section.

Copy to Clipboard

No Comments

  1. Jennifer Grabher November 29, 2018 at 2:51 pm - Reply

    The Avada Solution on this worked perfectly fine for me. Big thanks Muhammad :)

    • Muhammad Hassan Tariq November 29, 2018 at 3:11 pm - Reply

      Awesome and you’re welcome :-)

  2. Taher Burian December 13, 2018 at 4:45 pm - Reply

    Didn’t work for me …
    I tried the Avada solution and functions.php….
    any idea why?

    • Muhammad Hassan Tariq December 18, 2018 at 12:21 pm - Reply

      Try the JS code as well.

  3. Werbeagentur February 5, 2019 at 3:04 pm - Reply

    Thank you for this Nice Tutorial. It works fine – and i used Avada

    • Muhammad Hassan Tariq February 22, 2019 at 1:08 am - Reply

      Great :-)

  4. Bmuzammil March 30, 2019 at 5:27 pm - Reply

    Developer tools browser > Inspect > Find CSS Class on the image and apply the follow css with Pointer-Events = Disabled.

    This worked for me!

    CSS classes below are for Flatsome theme. Yours might be different so check and change the class name.
    .skip-lazy, .wp-post-image {
    pointer-events: none;
    }

    • kiko October 29, 2019 at 11:36 pm - Reply

      works perfectly on Flatsome! (after MANY attempts with other methods). thank you.

    • Khan March 20, 2020 at 4:44 am - Reply

      THANK YOU SO SO MUCH.

      This was the only thing that works perfectly on Flatsome.

  5. Bjorn May 10, 2019 at 5:25 pm - Reply

    Thanks a lot, works like a charm!

  6. Steve Pederson August 2, 2019 at 8:40 pm - Reply

    The code for the functions.php page did not work for me, but the JS code did! Thanks! Big help.

    • Muhammad Hassan Tariq August 2, 2019 at 9:23 pm - Reply

      Glad to hear JS solution worked :-)

  7. Erskin Hansen August 11, 2019 at 1:52 pm - Reply

    The Javascript code worked for me! Thank you!

    • Muhammad Hassan Tariq August 11, 2019 at 7:45 pm - Reply

      Awesome :-)

  8. Robert August 14, 2019 at 6:46 pm - Reply

    I tried both the options and It worked perfectly on some of the pages but not at all on others… Any idea how to fix this?

  9. Bruno October 9, 2019 at 7:22 pm - Reply

    Great post! JavaScript code is rocket ;) Thank you!

    • Bruno October 21, 2019 at 1:58 pm - Reply

      Hello Muhammad! Are this script blocked focus keyphrase in Yoast SEO ?

  10. Cosmin October 22, 2019 at 5:10 pm - Reply

    Superr!Thx,

  11. Tomas April 6, 2020 at 1:01 pm - Reply

    Thank you!

  12. Yair April 14, 2020 at 5:06 pm - Reply

    Funciono para mi Gracias !!!

  13. James Thaw June 21, 2020 at 8:15 am - Reply

    For Astra User
    */wp-admin/theme-editor.php?file=header.php&theme=astra

    Select the header.php and you can put the above code between *** tags

    It’s work for me …

  14. Dave July 25, 2020 at 3:55 am - Reply

    the JS code didn’t work for me …

  15. Dave July 25, 2020 at 4:06 am - Reply

    Now its Ok…

  16. james November 5, 2020 at 2:33 pm - Reply

    worked perfectly, thanks

  17. Molly February 16, 2021 at 7:34 am - Reply

    You’re a life/timesaver! Thanks so much!

    • Muhammad Hassan Tariq February 16, 2021 at 11:19 pm - Reply

      Great.

  18. […] ai suggerimenti che appaiono quando passi sopra un’immagine (come si vede in questo post https://www.webzando.com/blog/remove-hide-title-wordpress-images/). Desidero disabilitare la visualizzazione del titolo al passaggio del mouse senza rimuovere tutti […]

  19. Rene K July 4, 2022 at 7:46 pm - Reply

    Tried both but neither worked for me, any ideas why? Using Woostify theme

Leave A Comment