-
AuthorPosts
-
May 12, 2015 at 11:57 am #442947
Hi,
Can the Gallery captions on mouse-over be removed? I want them on the larger images but not on the thumbnails!
Thanks
BrianMay 12, 2015 at 6:03 pm #443232Hey 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,
ElliottMay 12, 2015 at 6:32 pm #443248Hi,
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
BrianMay 12, 2015 at 7:35 pm #443283Hey!
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,
YigitMay 12, 2015 at 8:10 pm #443329OK, not getting the error now but the captions are still there:
May 12, 2015 at 8:15 pm #443332Hi!
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!
YigitMay 12, 2015 at 10:57 pm #443422Hi,
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
BrianMay 12, 2015 at 11:00 pm #443425Hey!
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,
YigitMay 12, 2015 at 11:21 pm #443445Hi,
I am still struggling! Could you have a look please:
Temporary admin:
http://www.agcce.com/wp-admin/
user: Yigit
pass: !yigit11May 12, 2015 at 11:58 pm #443454Hi!
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,
YigitMay 13, 2015 at 12:30 am #443461Thank you Yigit, that works fine now!!!
Brian
P.S.
I have another question posted are you able to look at it?
-
AuthorPosts
- The topic ‘Gallery Captions on mouse-over’ is closed to new replies.