• Hi,

    I am using the ajaxify wordpress site plugin to load my page content with ajax. Unfortunately, unlike advanced ajax page loader, AWS does not come with a built-in area for js reloaders. I am not very familiar with JS so I was hoping you could help me figure out where to put the sbi_init(); function so that the plugin reloads when the site is navigated. Thanks for the awesome plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey regularlegspartner,

    Glad you like the plugin! We have a few other things to try that you can take a look at it this FAQ: https://smashballoon.com/my-photos-dont-show-up-sometimes-unless-i-refresh-my-page-ajax-theme/. Let me know if you are still having trouble after trying them.

    – Craig

    Thread Starter regularlegspartner

    (@regularlegspartner)

    Thanks Craig, I did try that, unfortunately the checkbox doesn’t work and my theme doesn’t have a built in place for reloading scripts. I just need to figure out where to put the sbi_init() so that it gets called when there is an ajax success

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey again,

    Hmm in that case you could try two things:

    1) Contact the theme author to see if they have suggestions on where you can add sbi_init() in the theme’s source code.

    2) You could try this custom javascript in the “Custom Javascript” area on the “Customize” tab:

    setTimeout(function() {
      if (jQuery('#sb_instagram').length && !jQuery('#sb_instagram').find('.sbi_item').length) {
        sbi_init();
      }
    }, 1000);

    You could adjust the 1000 number up or down to change how long it takes for the code to fire once the page loads.

    Thread Starter regularlegspartner

    (@regularlegspartner)

    Craig, I got it working, do you have reinitialize functions for your facebook and twitter plugins

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Both of those plugins are php based so they will still display even if the javascript is not executed.

    However, the Twitter plugin may not show links as being clickable and the “Load more” button probably won’t work. There might be a workaround for this as well and it may be something we address in a future update so that it will work without javascript.

    Let me know if you have any other questions or if you try the other plugins and have trouble!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reload JS with ajax theme (checkbox not working)’ is closed to new replies.