Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey – I’ve just been working with this plugin and come across the ‘reload’ situation.

    location.reload();

    If you place your code within the admin panel ‘reload’ section – it get’s placed here:

    "[yoursite.com]/wp-content/plugins/advanced-ajax-page-loader/reload_code.js"

    I’m making the assumption (without looking into the plugin code) that the anchors are triggered/binded with $(document).ready(function (){}.

    Try this:

    $(window).on('load', function() {
       //// Non Ajax loading pages
    	$('#home, #contact').click(function() {
    		location.reload();
    	});
    });

    My ‘main.js’ is rendered before the plugin loads. Not sure if that helps.

    @mewithoutyou
    Were you able to get this working? I am having the same issue.

    @jay Hughes
    Can you dumb down what you said above for a non-programmer? I tried plugging in your snippet and changing ‘#home, #contact’ to the page in question on my site, ‘#shows’, but doesn’t seem to do anything.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reload Code for Bandsintown’ is closed to new replies.