javascript(shadowbox) not loading in ajax refreshed pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • #3500
    tomdizzle
    Participant

    Long story short:

    I want to open all homepage gallery-slider images in shadowbox.

    Installed the shadowbox plugin and changed the “rel=bookmark” to “rel=”shadowbox”” in the template loop-slider.php.

    This works on the homepage but when i click the arrow to see previous posts (?paged=2), it stops working. when i load up my site using: http://www.domain.com/?paged=2 it works.

    so my guess is that somewhere in AJAX refresh it doesnt load the shadowbox javascript.

    Who can help me out here? PLEASE!!!!!!

    #3502
    tomdizzle
    Participant

    I did it!!! yay!

    I had to add:
    Shadowbox.init({ skipSetup: true }); Shadowbox.setup();

    to the theme functions file, just underneath the line:
    jQuery(‘#slider’).load(link+’ #ajax-content’,
    function(){

    • This reply was modified 12 years, 10 months ago by Daniel Tara.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.