• Resolved matiseli

    (@matiseli)


    Hello,
    I try to disable title on hover an image in Envira gallery. I found that this code should do the trick:

    <script type="text/javascript">
      jQuery('document').ready(function($){
      	$('.envira-gallery-image[title]').removeAttr('title');
      });
    </script>

    Unfortunately, I don’t know how to integrate this code into the plugin Code Snippets. I tried this solution, unfortunately it doesn’t work:

    add_action( 'wp_head', function () {
    	?>
    <script type="text/javascript">
      jQuery('document').ready(function($){
      	$('.envira-gallery-image[title]').removeAttr('title');
      });
    </script>
    	<?php
    } );

    Thank you for your help.

    • This topic was modified 4 years, 4 months ago by matiseli.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Remove title from image on hover’ is closed to new replies.