Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1115809

    Hi,

    When we hover over the images it shows the image title under which we have saved the image in the library.

    How can we hide it permanently?

    I have used the following code in function.php but it didn’t work.

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);
    */
    Please can you recommend a solution as it looks unprofessional when it shows the file names.

    Looking forward to your response.

    Kind regards,
    http://www.projectt.co.uk

    #1116160

    Hey projectt_co_uk,

    I can’t see any title when hovering images on your site, did you manage to get it working? The site you linked to in private redirects to a localhost IP.

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.