Answer the question
In order to leave comments, you need to log in
Why doesn't the gallery show up when opening a post in fancybox in wordpress?
As soon as, for example, I open the console, the gallery is loaded, but without settings.
Answer the question
In order to leave comments, you need to log in
json is not parsed, but parsed. after decoding, you get a ready-made structure, what's the problem with converting it to the look you need?
usually the gallery needs to calculate the width, and since the fancybox content is hidden, it has nothing to calculate.
When you open the console, a resize is performed and the gallery does a recalculation.
You need to initialize after opening the window, or resize the gallery. Look at the plugin documentation, everything is there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question