-
AuthorPosts
-
August 24, 2014 at 10:16 pm #308493
hey there,
how can i disable the left and right arrow navigation (or grouping) in the lighbox when i use single images f.e. in an accordeon. the arrows should only shown when i use a gallery.
- This topic was modified 10 years, 4 months ago by volmering.
August 25, 2014 at 2:37 am #308526Hi,
Can you post the link to your website please?
Regards,
JosueAugust 25, 2014 at 11:06 am #308739oh sorry :-)
http://www.wordpress-design.info/haane/?page_id=854
atm its just a test-site. the accordeon has 6 tabs. there are single images in it. i just want to open an image without grouping. sorry for my english, hope u understand what i mean. :-)
btw: thx for the quick answer
- This reply was modified 10 years, 4 months ago by volmering.
August 25, 2014 at 8:51 pm #308972Hi,
Open js/avia.js and look for line 833:
enabled: true,
Replace it by this:
enabled: false,
Regards,
JosueAugust 26, 2014 at 5:25 am #309116hi josue, thx alot again.
but now the grouping in gallerys in off too. is there a solution that grouping only in gallerys work?
August 26, 2014 at 6:31 am #309130Hi!
Revert that modification and instead add this to the theme / child theme functions.php file:
function add_custom_script(){ ?> <script> (function($){ $(window).load(function() { $(".toggle_content .lightbox-added").magnificPopup({ type: 'image', mainClass: 'avia-popup mfp-zoom-in', gallery: { enabled: false, }, callbacks: { imageLoadComplete: function() { var self = this; setTimeout(function() { self.wrap.addClass('mfp-image-loaded'); }, 16); } } }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');
Best regards,
Josue- This reply was modified 10 years, 4 months ago by Josue.
August 27, 2014 at 5:29 am #309641magnificent josue! it works.
thx alot, plz let the thread open. ill develope a bit around that point.
August 27, 2014 at 6:06 am #309656Ok, let me know :)
April 16, 2015 at 7:25 am #429363hi josue,
can u check the modification for the latest enfold version. tried it on another installation, but did not work.
thx
April 16, 2015 at 9:26 am #429436Hey!
Can you post a link to your other installation?
Cheers!
JosueJuly 28, 2016 at 3:53 pm #666310hey josue, in the latest updates your code does not work anymore :-)
July 30, 2016 at 1:10 am #666729Hey!
Please post a link to your site.
Best regards,
JosueAugust 4, 2016 at 2:28 pm #668587hey josue, thx for your help.
here is one example link:
http://www.bodenbelag-koch.de/naturfaser/
i would like to disable the lightboxgrouping on singleimages in textcontainer or images in imagecontainer (avia)
but
the grouping should work in gallerys
@ the moment many websites using one-page-designs with many informations on one site. the lighboxgrouping is a very important thing (disable or enable) in my opinion.
- This reply was modified 8 years, 4 months ago by volmering.
August 5, 2016 at 3:17 am #668784Hi,
Try setting each element container a CSS class of “avia-slideshow” or “avia-gallery”, that will trigger individual grouping for all images contained in that element.
Best regards,
JosueAugust 5, 2016 at 10:51 am #668926hey josue,
well, but when i f.e. change the position of an avia element.on a page, i have to change the css for each image-container (gallery or singleimage)
is there no snippet for the functions.php like the one u postet above?
August 7, 2016 at 4:30 pm #669472Not sure if it will work in your case but you could try this one:
function add_custom_script(){ ?> <script> (function($){ $(window).load(function() { $(".avia_textblock .lightbox-added, .avia-image-container .lightbox-added").magnificPopup({ type: 'image', mainClass: 'avia-popup mfp-zoom-in', gallery: { enabled: false, }, callbacks: { imageLoadComplete: function() { var self = this; setTimeout(function() { self.wrap.addClass('mfp-image-loaded'); }, 16); } } }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');
Best regards,
JosueSeptember 21, 2016 at 3:12 pm #689857hey josue, thx alot and great work.
the only small thing what is left is, that the image-tilte ist not showing in the lightbox if i use avia image
in the avia galleries the title is showing on top of the lightbox-image, weired :-)
ist there a solution too?
- This reply was modified 8 years, 3 months ago by volmering.
September 22, 2016 at 7:01 am #690093Hi,
Post a link to the Page where you’re trying this.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.