Viewing 14 posts - 31 through 44 (of 44 total)
  • Author
  • #1149950

    Hi all,

    It’s amazing to me that this thread has over 30 comments now about the captions not working with the Masonry Gallery and nothing was fixed in the latest update. I provided images, illustrations, comparisons and multiple case studies and tests showing the problem. All that was done is a post about how to “hack” the problem which still doesn’t fix the issue.

    So I tried using a third party plugin called Lightbox with PhotoSwipe. This plugin has a feature called: “Get the image CAPTIONS from the database (this may cause delays on slower servers)”. This has worked with other websites using a different builder. But it DOES NOT work with Enfold. The Masonry Gallery cripples any attempt at getting the CAPTIONS. Not the TITLE, but the CAPTIONS.

    I pointing out that even in your own Masonry Gallery, THE CAPTION SECTION DOES NOT WORK. When you add images, you can rearrange them and enter captions. These captions don’t show up in the Lightbox because the Lightbox is only pulling the Title of the image.

    This problem doesn’t exist in the Gallery widget, only in the Masonry Gallery.

    If this is not something anyone cares about, can you at least allow other plugins to access the CAPTIONS to the image? Please?!

    Thank you.


    All I need is to simply have access to the image Caption using Lightbox with PhotoSwipe. But it seems the masonry widget does not allow access to this info from any plugin.




    Thank you for following up.

    We actually explained the issue in our previous reply:


    And provided a solution in the other:


    But you refused to implement it. Unfortunately, we are not familiar with the Photoswipe plugin’s code — specifically how or where it gets the caption. If it is from the database, then it is probably from an existing meta information that the images have, so the masonry gallery markup won’t matter. Did you disable the theme lightbox after installing the plugin? Please contact the plugin developer and ask them how the plugin applies the caption, then maybe we can implement the requirement in the masonry element.

    Best regards,



    I’m checking in on this after updating to ALL your recent updates running Enfold 4.7.4. At the link below, I show another set of images documenting how when uploading images to the masonry gallery, I enter the captions in the field provided by Enfold for captions. When I view the masonry gallery, the captions are not displayed, only the title is displayed.

    See documentation:

    From a user who buys the theme and uses this masonry gallery and enters captions, this would be incredibly frustrating. Why do you continue to provide a field for captions if they don’t display? If you don’t plan to fix it, please remove it or make it pull the image title which is what it’s doing now.

    This continues to support my claim above that this was changed sometime 4 or 5 versions ago breaking all websites done previously.

    I hope I can help you fix this by showing you this problem for any new Enfold user.




    Our reply above still stands. You can either put the description or the caption in the title attribute of the images so that the lightbox will be able to pick it up, or follow the instruction that we provided in the previous thread so that the caption of the masonry item is used instead of its title attribute.

    Why do you continue to provide a field for captions if they don’t display?

    Please note that the caption field in the Media uploader is a default core feature, which is always available whenever you upload images. We didn’t add it manually.

    Best regards,


    I understand all this, thank you. By “core feature” what do you mean? WordPress core or Enfold core? Also, please point me to where I can find any tutorial or information about this problem if I was a new user. I know how to fix it now and I’m a little more advanced them other users. Do you want all new users to go looking for this thread because the theme doesn’t work correctly?

    There is no info here at all about this caption issue:

    And in this tutorial which you recommend, has NOTHING about captioning your images and how to make sure you do it right. The video talks about how amazing the gallery is for your photography, and completely misses one of the biggest features for photographers.

    I’m just wondering if this is something that users will find misleading and frustrating. As a new user who adds a new gallery, I see the theme show me nice inputs under the images that say “Image Caption.” So you’re telling me as a new user once this doesn’t work I have to go looking all over the internet for why it doesn’t work?

    With such an important feature, is it not important to fix?




    It is a core feature of the media uploader or library from WordPress — it’s not from the theme.

    There’s actually no problem with how the masonry element works aside from your expectation that the value set in the caption field will display in the lightbox description, which is not how we intend it to work by default. Again, the masonry element will use the value of the title attribute as description, not the caption value.

    If you want the caption value to display in the lightbox container, you can again do the modification that we provided previously.


    We will forward the thread to our channel.

    Best regards,


    With new DOM Elements ( mfp-top-bar) and for the mfp-bottom-bar a callback function with new content.
    here is my magnific popup script written for that page here:

    See popup script code on that page please.


    Off Topic : i just realized that a masonry with fixed size got a totaly different markup than the flexible masonry – so code must be changed.

    • This reply was modified 3 years, 11 months ago by Guenni007.


    Thanks @Guenni007. Is it OK if we post the popup_masonry_gallery function here so that everyone can see it?

    Best regards,


    yes – of course – if there is a better syntax let me know.
    I changed a little bit the code – with better markup – because it is better to have mfp-title is Title – that’s not so confusing then

    • This reply was modified 3 years, 11 months ago by Guenni007.


    I added this problem to our feature requests in the dev repo.

    But it will need to find a solution to stay compatible with existing sites that rely on the existing behaviour.

    Probably we will add options for new sites and a filter for existing sites to use captions.


    Added alt attribute to fixed masonry markup.

    Best regards,


    Thank you Günter for adding this to the list of feature requests and bug fixes.

    It seems to me that all the replies here on how to fix it and how there is nothing wrong with it misses the point to a major part of Enfold users who are not web developers. As they use the gallery and enter captions into the field that says they should enter a caption and then they don’t work. It’s a major problem.

    Another point I would make as I made before, we launched many websites for clients using Enfold where this field worked just fine and it even used the captions input from the images. IT WAS CHANGED at some point and ALL our client sites were broken. We had to go through everything and change the caption info to the Title field in the image.

    If this had always worked in the current way, we would not have launched so many websites using that field to enter captions or using the caption field from the images.

    I hope this gets fixed. Thank you.


    But you had seen my answer – and have followed the link above?
    and if you like to have all in the bottom bar, just change the markup on top – and move the mfp-title div to the bottom bar.



    Link to the custom popup_masonry_gallery script (by @Guenni007) in case someone else wanted to implement it:


    Best regards,

Viewing 14 posts - 31 through 44 (of 44 total)
  • You must be logged in to reply to this topic.