• Resolved monicamit

    (@monicamit)


    First of all, I love this plugin and in 3 years of using it is only the second time I have encountered a problem, and the first time it was promptly fixed. I hope this too!
    
    With ACF Pro I created a repeater dedicated to a specific page and I dedicated a text field for the shortcode of a gallery already created with SimpLy.
    
    These repeater objects are loaded into the frontend in an accordion which displays the title, text and images via shortcode.
    
    It works perfectly, except the loading of the images: the first time you expand the accordion they are loaded of all different sizes (with any kind of gallery, blocks or justified for example), both with and without lazy load.
    At the second open-close they manage to have the correct size.
    
    I know this is not the problem with the accordion itself, or with the repeater, because this is the second time I have noticed this problem.
    This time I am using ACF Pro and Oxygen, but the first time I noticed this with elementor, but I was actually just putting the shortcodes in the WP page text editor.
    The result was a page with a sequence of smaller and smaller images.
    
    Is it possible to be able to fix this problem?
    Thanks in advance and congratulations on your plugin again!
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author GalleryCreator

    (@gallerycreator)

    Hello,
    this is most likely a problem due to the fact that the accordion container doesn’t have a specific width (it resizes to fit the content), in which case the gallery can’t properly calculate thumbnail sizes. In short, maybe this is a problem (incompatibility) in styles with your accordion, my galleries need a container with a certain width. But other reasons for this problem are also possible, but in order to cope with them, you need to study the problem more deeply.

    Thread Starter monicamit

    (@monicamit)

    Thanks for the quick answer!

    In fact, I often use galleries with full width fluid templates without a specific size, using percentages.
    The problem arises when the galleries are inserted with shortcode (either in a wordpress page or loaded into the template with elementor or oxygen)
    Inserted in the wordpress editor as a “standard block” they work correctly.

    This is the link reference where you can see that problem in act.

    Link

    The short code is in the first two accordions, in a 100% width box

    • This reply was modified 1 year, 10 months ago by monicamit.
    Plugin Author GalleryCreator

    (@gallerycreator)

    In your accordion, the content (gallery) is inserted into a span (container) whose display property is display: inline-block;. This is not suitable for my galleries.

    Thread Starter monicamit

    (@monicamit)

    AH! Fixed, thank you so much, I understood the problem 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery display problem via shortcode’ is closed to new replies.