Support » Plugin: jQuery Colorbox » Ajax Loaded Content

  • So I am loading ajax content into a div on the page. Inside that content there are some images with the class of colorbox-link and I am trying to get it to be a colorobx popup instead of being an open in new window.

    I have tried putting in Javascript
    jQuery(‘.colorbox-link’).colorbox();
    On the load content call but I can’t seem to get the image to open in a colorbox. Has anyone been able to accomplish this?

    https://wordpress.org/plugins/jquery-colorbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter WP CMS Ninja

    (@billiardgreg)

    So I manually added some classes to the content getting brought in but the colorbox popup is huge and not optimized for the screen.

    Plugin Contributor techotronic

    (@techotronic)

    Hi,
    do you have a URL to the site you’re working on?
    Cheers,
    Arne

    Thread Starter WP CMS Ninja

    (@billiardgreg)

    It is a dev site so no I don’t have a public facing url right now. I am able to manually give the object a class of the colorobx but the image itself is not optimized for size and show up in a colorbox that is the full image instead of being optimized for the size of the window.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ajax Loaded Content’ is closed to new replies.