Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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, 3 months ago by volmering.
    #308526

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #308739

    oh 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, 3 months ago by volmering.
    #308972

    Hi,

    Open js/avia.js and look for line 833:

    enabled:	true,
    

    Replace it by this:

    enabled:	false,
    

    Regards,
    Josue

    #309116

    hi josue, thx alot again.

    but now the grouping in gallerys in off too. is there a solution that grouping only in gallerys work?

    #309130

    Hi!

    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, 2 months ago by Josue.
    #309641

    magnificent josue! it works.

    thx alot, plz let the thread open. ill develope a bit around that point.

    #309656

    Ok, let me know :)

    #429363

    hi josue,

    can u check the modification for the latest enfold version. tried it on another installation, but did not work.

    thx

    #429436

    Hey!

    Can you post a link to your other installation?

    Cheers!
    Josue

    #666310

    hey josue, in the latest updates your code does not work anymore :-)

    #666729

    Hey!

    Please post a link to your site.

    Best regards,
    Josue

    #668587

    hey 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, 3 months ago by volmering.
    #668784

    Hi,

    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,
    Josue

    #668926

    hey 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?

    #669472

    Not 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,
    Josue

    #689857

    hey 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, 2 months ago by volmering.
    #690093

    Hi,

    Post a link to the Page where you’re trying this.

    Best regards,
    Josue

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