Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #941
    Cory Dobson
    Participant

    I’m using Advanced Ajax Page Loader plugin, and I need a js reload code to use in conjunction with it. If you check out my site at http://www.cloggedcap.ca, you’ll see the portfolio section loads in projects using ajax, but the lightbox doesn’t work. However if you then refresh the page and see the single project page, it works. Any idea what reload code I could use so that it loads everytime a page is loaded using Ajax?

    #943
    Bartosz
    Keymaster

    Hi Cory,

    First I’d like to say that you have a great website (and portfolio), congrats :)

    When it comes to Ajax and Responsive Lightbox, it’s not working out of the box but this could be done using jQuery .on() function. Try changing some code in js/front.js file.

    Right after:

    jQuery(document).ready(function($) {
    

    Insert this:

    $(document).on('mousedown', 'a[rel*="'+rlArgs.selector+'"]', function() {
    

    And close the brackets before the end of the script – just put });

    Hope it helps.

    #955
    Cory Dobson
    Participant

    Hi Bartosz,

    That worked, thanks a bunch!

    Cory

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.