liwenyip / hugo-easy-gallery

Automagical css image gallery in Hugo using shortcodes, with optional lightbox/carousel gadget using PhotoSwipe and jQuery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error when clicked image

j620656786206 opened this issue · comments

Hi,

I got error when I clicked the image

the error message is:

photoswipe.min.js:4 Uncaught TypeError: Cannot read property 'firstChild' of undefined at Object.getChildByClass (photoswipe.min.js:4) at a.init (photoswipe.min.js:4) at HTMLElement.<anonymous> (load-photoswipe.js:77) at HTMLElement.dispatch (jquery-1.12.4.min.js:3) at HTMLElement.r.handle (jquery-1.12.4.min.js:3) getChildByClass @ photoswipe.min.js:4 init @ photoswipe.min.js:4 (anonymous) @ load-photoswipe.js:77 dispatch @ jquery-1.12.4.min.js:3 r.handle @ jquery-1.12.4.min.js:3
I manually put jquery in the /layout/partials/header.html, please help me, thank you!

Hi, if you're still having issues, can you please post a link to a test page that demonstrates the issue, and post your source code here? Thanks :-)

@j620656786206 you need to Load PhotoSwipe by calling the {{< load-photoswipe >}} shortcode anywhere in your post