Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, sorry about that. I forgot to check the post. It actually requires coding knowledge. Are you good with editing code?

    https://wordpress.org/support/topic/infinite-scroll-colorbox

    Thread Starter pisang20

    (@pisang20)

    Not so much. I know some simple stuff but still learning. If you can give me guidance then Im willing to try. I thought it was as simple as just as add colorbox function into infinitescroll.js callback.

    infinitescroll.js is here: http://pastebin.com/4sLcu2qW

    Plugin Author Noor Alam

    (@naa986)

    Well, I don’t really understand the infinitescroll.js script. But I believe you will need to call the colorbox function where you are dynamically loading content. You will be able to find the function call in this script.

    /wp-content/plugins/wp-colorbox/wp-colorbox.js

    Thread Starter pisang20

    (@pisang20)

    All this need to be included to callback?

    jQuery(document).ready(function($) {
        $(".wp-colorbox-image").colorbox({maxWidth:"99%", maxHeight: "99%"});
        $(".wp-colorbox-youtube").colorbox({iframe:true, width:"90%", height:"90%", maxWidth:640, maxHeight: 480});
        $(".wp-colorbox-vimeo").colorbox({iframe:true, width:"90%", height:"90%", maxWidth:640, maxHeight: 480});
        $(".wp-colorbox-iframe").colorbox({iframe:true, width:"80%", height:"80%"});
        $(".wp-colorbox-inline").colorbox({inline:true, width:"90%", maxWidth:640});
    });

    Thx 🙂

    Thread Starter pisang20

    (@pisang20)

    It was a issue with the video plugin. Added update function to their plugin and now it works 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘resolved topic not resolved’ is closed to new replies.