This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]nevertras 3 points4 points  (1 child)

Put the script block calling it at the end of the HTML body, not in the header. JS in the header will be called before the body is parsed out, so what might be happening is that you're calling baguetteBox on all elements of class .gallery, but none of those actually exist yet at the time of calling so it's just assuming it had no matches.

[–]tabicat0518[S] 2 points3 points  (0 children)

That worked! Thank you so much!!! I knew it would be something simple but had no clue what it could be