• Hi,
    hi have different gallery with different images, 1 gallery per page. In one of this gallery only on iphone, there is this error:

    TypeError: undefined is not an object (evaluating ‘$(this).data(‘size’).split’)

    and the gallery doesn’t work.
    do you understand what could be the problem?

    thanks best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Luca

    (@045web)

    Solution found!
    After a little modify in the code, i put the image title in the <figcaption> tag

    <figcaption class=”photoswipe-gallery-caption” >’. $image_title .'</figcaption>

    What happnes: in mobile device, as iphone, if in the image title text there is a text like “100/120/130” o “10-15-40” the mobile browser transform this in

    100/120/130

    ..it’s easy to understand that the gallery doesn’t work with this code inside the figcaption tag.

    Best regards.

    Good to hear ??

    @045web Thank you! ?? Was having similar problem.
    Was trying to use anchor links in caption. Edited the main php file of plugin and put the $image_title in figcaption.
    Now thumbnails show image title and when image opened in lightbox, shows the caption(with achor link).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on gallery’ is closed to new replies.