M
M
Max Zhukov2017-12-01 16:33:02
Python
Max Zhukov, 2017-12-01 16:33:02

Why doesn't the gallery show up when opening a post in fancybox in wordpress?

5a215906c6ac2087425033.png
As soon as, for example, I open the console, the gallery is loaded, but without settings.
5a2159ff7dba8217041501.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2019-09-17
@teacoder

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?

T
tyzberd, 2017-12-01
@tyzberd

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 question

Ask a Question

731 491 924 answers to any question