Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1295738

    Hi,

    i would like to hide the file name of the images if hovering the masonry gallery.

    I tried this:

    function remove_title_attr(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘#wrap_all a’).removeAttr(‘title’);
    jQuery(‘#wrap_all img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘remove_title_attr’);

    The file name of the lightbox image is hidden but if i just hover an image – the browser always showing the file name.

    How can i hide this too?

    Thank you for helping!

    #1296349

    Hi,

    Thanks for contacting us!

    Please add following code to bottom of Functions.php file of your child theme

    function remove_title_attr(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('#wrap_all a').removeAttr('title');
    jQuery('#wrap_all img').removeAttr('title');
    jQuery('.av-masonry-image-container').removeAttr('title');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_attr');

    Best regards,
    Yigit

    #1296482

    Hi Yigit,

    thank you for helping.

    i put your php in my functions.php of my child theme, but it doesn’t change anything.
    The image name when i hover it is still there.

    in private content is the link to see what i mean.

    Thank you!

    #1296872

    Hi,

    Thanks for the update. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1297000

    Login is in private Content

    #1297052

    Hi,

    Thanks for the logins however Editor is missing under Appearance tab therefore we could not check functions.php file inside the child theme.
    Could you please post FTP logins here privately as well or enable editor? :)

    Best regards,
    Yigit

    #1297116

    FTP Login is in private content.

    #1297275

    Hi,

    Thanks!

    Your code was not updated in functions.php file. I simply updated it to following one and that helped

    function remove_title_attr(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('#wrap_all a').removeAttr('title');
    jQuery('#wrap_all img').removeAttr('title');
    jQuery('.av-masonry-image-container').removeAttr('title');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_attr');

    Please review your website :)

    Best regards,
    Yigit

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