• Hello, I am trying to change my default theme fancybox with swipebox and I have a weird problem. My portfolio page is working with scroll-loading and first amount of loaded photos is 9. Everything seems working until I scroll. Then is Fancybox back. First nine photos is ok and scrolled photos are opening with fancybox. Any advice?

    Btw: Website is in maintenance mode. Can you give me your IP? I will exlude you from maintenace.

    My website

    Thank you very much and sorry for my english.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Leonardo Giacone

    (@leopeo)

    Hi @curikjakub,
    thank you for posting your issue, let’s try to figure what’s happening.

    I don’t have a static IP, could you please create a user (role subscriber) in order to allow me to see the website under construction?

    My email: leonardo.giacone[at]gmail.com

    Many thanks!
    Leonardo

    Thread Starter curikjakub

    (@curikjakub)

    @leopeo You can try it out. ??

    Thanks
    Jakub

    Plugin Author Leonardo Giacone

    (@leopeo)

    @curikjakub,
    thank you for the login, I had a look, and that’s what I discovered:

    Easy SwipeBox detects via javascript all the links to video or image and adds the class swipebox to them.
    This happens on $( document ).ready(), the page DOM is ready for Javascript code to execute.

    Unfortunately, the portfolio elements loaded after the page scroll are not there to be detected, so they don’t have the class to initiate swipebox (class="swipebox").

    We can try to solve it in two ways:

    1) Add class swipebox in your template
    Create a Child Theme and edit the list template adding the class swipebox to the portfolio thumbnail.

    2) Initiate swipebox after the scroll and all the elements are loaded.
    Unfortunately, I don’t know how this infinite scroll works and what’s the right callback.

    About Fancybox lightbox, it’s completely useless if you use Easy SwipeBox.
    You should contact the theme developer and ask how to de-activate it.

    I hope this it will help you, please let know.
    Leonardo

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to replace theme fancybox with swipebox’ is closed to new replies.