Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #836581

    Hi

    I have several galleries of images. When you click on the thumbnail, it opens a lightbox and the image has a caption. (good)
    But I don’t want the caption to show when you hover over the thumbnail. How can I remove it?

    see here: http://www.thenewmasters.com/sam-james/gallery/

    Thanks,
    Ginny

    #836591

    Sorry – wrong URL: http://www.samjamesart.com

    #837960

    Hi Ginny,

    Do you mean this caption?

    View post on imgur.com

    Best regards,
    Victoria

    #838884

    Yes – how do I remove that?

    #839479

    Hello?

    Is there a way to remove that caption when I hover on a gallery image?

    #840393

    Hi ginnywills,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #840447

    thanks

    #840493

    Hi,

    Please add this to functions.php

    // remove tooltip
    add_action('wp_footer', 'ava_remove_tooltip');
    function ava_remove_tooltip(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$('#top #wrap_all .avia-gallery .avia-gallery-thumb a img').each(function() {
    		$(this).removeAttr('data-avia-tooltip');
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Jordan Shannon

    #840905

    Hi

    I tried that and then I got this error:

    http://www.samjamesart.com is currently unable to handle this request.
    HTTP ERROR 500

    It took the whole site down.
    Maybe a typo somewhere?

    #840933

    Hi,

    That’s strange. Would you be able to provide FTP access so I can view the rest of the functions file?

    Best regards,
    Jordan Shannon

    #842008
    This reply has been marked as private.
    #842156

    Hi,

    Do you mean why you can’t? You can’t use the dash editor?

    Best regards,
    Jordan Shannon

    #842160

    Usually I can edit the functions.php file straight through the WordPress dashboard but on this site it needs to be done via FTP. Do you know why?

    Were you able to get in via FTP?

    #842163

    Hi,

    Do you have any user restriction? Perhaps a security plugin is blocking that particular link. I have not attempted the FTP yet as if I am able to use the dash as well it will be better.

    Best regards,
    Jordan Shannon

    #842189

    I disabled the security plugin and that did it. You should be able to get in via the dashboard now.

    #842215

    Hi,

    I added the following to functions.php:

    function remove_custom_tooltip(){
    ?>
    <script>
    /* The first line waits until the page has finished to load and is ready to manipulate */
    jQuery(document).ready(function(){
        /* remove the 'title' attribute of all <img /> tags */
        jQuery("img").removeAttr("data-avia-tooltip");
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_custom_tooltip');

    It works, please test.

    Best regards,
    Jordan Shannon

    #842247

    Its great. Thanks so much!!

    #842423

    Hi ginnywills,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Victoria

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