Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1283058

    Hi @Mike
    how can i disable the tooltip (black box with metadata showing up when hovering over an image) in:
    – Normal Gallery
    – Gallery (one big image, thumbnails below)

    Reason:
    – When having images from a same object it shows the same metadata and that looks bad for a user
    – When using the gallery “Big image, thumbnails below” the tooltip covers the big image and that is something you should fix anyway

    kind regards
    Christian

    #1283061

    OK, i already found it:
    .avia-tooltip { display: none !important; }

    Is there a way to say:
    Disable avia tooltip ONLY on pageXY
    I guess yes cause every URL has a specific post-ID and a page type.
    Is the right way this?
    .avia-tooltip postid-29041 { display: none !important; }

    (i am not so confident with CSS)

    #1283564

    Hi,

    Yes, that is one way of doing it. But you have to include the post ID class before the other class, like so:

    .postid-29041 .avia-tooltip { 
      display: none; 
    }

    Best regards,
    Rikard

    #1286505

    Hi, I have used the mentioned code in Quick CSS

    .avia-tooltip {
       display: none !important;
    }

    but the tooltip is still showing, for example on hovering the thumb images at: https://houraway.webstar.si/ljubljlana-mountain-biking/
    Each image has both alt and name entered.
    I have entered the access data for you below

    #1286522

    the tooltip over links and images are not influenced by enfold – these are fundamental Settings of browsers to show a tooltip if a title tag is present.

    You can remove the title attribute – but is it advisable to do so from an SEO point of view?
    Put this to your child-theme functions.php:

    function remove_title_attr(){
    if(is_single(29041)) {
    ?>
    <script>
    (function($) {
    	$(window).on('load', function(){
    		$('#wrap_all a').removeAttr('title');
    		$('#wrap_all img').removeAttr('title');
    	});
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'remove_title_attr');
    #1286527

    Thanks @Guenni007, but wasn’t my wish the same as the wish described by @DouPaule? Regarding Namet tag tooltip removal? @Rikard?

    #1286532

    ok – you mean this enfold feature ( yellow underlined in the image) not the tooltip ( red-underlined)

    #1286536

    No, no, I mean the red underlined.

    #1286547

    yes and did you try that ( above the post was for a specific postid )
    You had to change it to your selector

    have a look if this works – then we can go and make it more specific to your needs:

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

    My client has been persuaded to keep the tooltip
    Thanks @Guenni007

    #1286597

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1286871

    @Jordan you can close it, thank you.

    #1305677

    Hallo @mike
    i was initially asking for a solution to surpress the tooltip on GALLERIES.
    The solution i suspected to work (and which has been confirmed by you) is removing ALL tooltips, also the ones which can be set on icons.

    So question again:
    How do i supress the tooltip ONLY on galleries?
    .avia-gallery .avia-tooltip { display: none !important; }
    OR
    .avia-tooltip .avia-gallery { display: none !important; }
    …does not work.

    What else?

    Christian

    #1305825

    Hello,

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

    function remove_gallery_tt(){
    ?>
     <script>
    	jQuery(window).load(function(){
    		jQuery('.avia-gallery img').removeAttr('data-avia-tooltip');
    	});
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_gallery_tt');

    Regards,
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Surpress / disable Tooltip’ is closed to new replies.