Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #442947

    Hi,

    Can the Gallery captions on mouse-over be removed? I want them on the larger images but not on the thumbnails!

    Thanks
    Brian

    #443232

    Hey brianwelsh!

    Try changing line 230 in /enfold/config-templatebuilder/avia-shortcodes/gallery.php from this.

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}' title='".$description."' $markup_url><img {$tooltip} src='".$img[0]."' width='".$img[1]."' height='".$img[2]."'  title='".$title."' alt='".$alt."' /></a>";
    

    To this.

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}'  $markup_url><img {$tooltip} src='".$img[0]."' width='".$img[1]."' height='".$img[2]."'  title='".$title."' alt='".$alt."' /></a>";
    

    Best regards,
    Elliott

    #443248

    Hi,

    I get an error:

    PHP Parse error: syntax error, unexpected ‘&’ in E:\Domains\a\agcce.eu.com-1068407097\user\htdocs\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\gallery.php on line 224

    Thanks
    Brian

    #443283

    Hey!

    Please overwrite the file with a new one via FTP. There is no “&” in Elliott’s code so please make sure that you are editing the code correctly.

    Regards,
    Yigit

    #443329

    OK, not getting the error now but the captions are still there:

    http://www.agcce.com/csr-activities/

    #443332

    Hi!

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

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

    Cheers!
    Yigit

    #443422

    Hi,
    I have done all of this and the captions are still there. I must be doing something wrong!

    If I get you the login details could you look please?

    Thanks
    Brian

    #443425

    Hey!

    Please change the code to following one

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

    I targeted wrong element in the first code, if this does not work, then please post temporary admin login

    Best regards,
    Yigit

    #443445

    Hi,

    I am still struggling! Could you have a look please:

    Temporary admin:

    http://www.agcce.com/wp-admin/

    user: Yigit
    pass: !yigit11

    #443454

    Hi!

    It seems like you have two functions.php files in your enfold folder. One has (error) in the name. I have moved the code to the main one and it is working fine on my end. Please review your website now.

    Regards,
    Yigit

    #443461

    Thank you Yigit, that works fine now!!!

    Brian

    P.S.

    I have another question posted are you able to look at it?

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Gallery Captions on mouse-over’ is closed to new replies.