-
AuthorPosts
-
September 4, 2017 at 7:42 am #847540Anonymous
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
BettySeptember 6, 2017 at 2:33 pm #848659Hey 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,
YigitSeptember 6, 2017 at 10:06 pm #848857AnonymousHey 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 galerieWhen 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
BettySeptember 9, 2017 at 4:24 am #849803Hi,
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,
IsmaelSeptember 10, 2017 at 12:38 pm #850104AnonymousHi Ismael
Thank you for the code. It works wonderful.Best Regards
BettySeptember 10, 2017 at 10:00 pm #850233 -
AuthorPosts
- The topic ‘Masonry Galerie’ is closed to new replies.