Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #690177

    Hi Guys, is it possible to disable the alt text showing on a slider (especially as the text can linger for a few seconds)? Normally it’s no problem but on this photography site it destroys the effect on the front slider.

    #690892

    Hey Annemarie,

    Please add following code to Functions.php file in Appearance > Editor

    function remove_title_attr(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.avia-slideshow a').removeAttr('title');
    jQuery('.avia-slideshow img').removeAttr('title');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_attr');

    Best regards,
    Yigit

    #696491

    That worked perfectly, thank you Yigit.
    NOTE FOR OTHER READERS you might want to clear your cache if it doesn’t work first time – that’s what we had to do.

    #696494

    Hi!

    You are welcome, glad we could help!
    Let us know if you have any other questions or issues and enjoy your weekend!

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disable alt text on sliders’ is closed to new replies.