Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #847540
    Anonymous

    Hallo Kriesi Support Team
    Ich habe in einem Portfolioeintrag 3 Masonry Galeries, die Bilder werden über die Lightbox geöffnet.
    Ist es möglich, dass alle Bilder, die in den 3 Masonary Galeries sind, in einer Lightbox zu kombinieren,
    d.h. alle Bilder des Portfolieseintrags sollen in einer Lightbox angezeigt werden.

    Momentan arbeite ich mit einer lokalen Installation unter OS X/10.9.5 mit einem Enfold Child Theme.

    Vielen Dank für die Hilfestellung
    Betty

    #848659

    Hey Betty,

    Thanks for contacting us!

    Can you please post a link to your page? By default, all images should be displayed in lightbox. If that is not what you meant, please elaborate :)

    Best regards,
    Yigit

    #848857
    Anonymous

    Hey Yigit
    I develope my site local, so i do not know, whow to send a link. I will try to explain the portfolio-post:
    1) first there is a masonry galerie
    2) then second a seperator/whitespace is following, because I will have more distance to the following picture
    3) then there is a next masonry galerie
    4) after that a seperator/whitespace again
    5) then a third masonry galerie

    When I open the pictures of the first masonry galerie all of them are displayed, but the pictures of galerie two and three are not in that lightbox.
    I must explizit click on a picture in the second or third galerie to open that pictures in lightbox
    It would be fantastic, when all pictures in the three galeries would be displayed together in one lightbox. I know this behavior from a another theme.
    Thanks for help me
    Betty

    #849803

    Hi,

    Each masonry gallery automatically creates a group of images. Why do you need to separate the masonry galleries? Can you just include all images inside a single masonry gallery element?

    You can move the masonry galleries inside a color section, add a unique Section ID to it called “lighbox-section” then use the following script in the functions.php file.

    // custom script
    function add_custom_script(){
    ?>
    <script>
    (function($){
    	function g() {
    		$('#lightbox-section').magnificPopup({
    		  delegate: 'a',
    		  type: 'image'
    		});
    	}
    
    	$(document).ready(function() {
    		g();
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Ismael

    #850104
    Anonymous

    Hi Ismael
    Thank you for the code. It works wonderful.

    Best Regards
    Betty

    #850233

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Masonry Galerie’ is closed to new replies.