Title: No tile function after first load
Last modified: August 21, 2016

---

# No tile function after first load

 *  Resolved [robsf](https://wordpress.org/support/users/robsf/)
 * (@robsf)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/)
 * Hi all,
 * Having a bit of an issue, I was hoping somebody might be able to shed a bit of
   light on the problem.
 * I’m using wp-tile with a theme called JPhotolio to create a responsive website
   for my company. Link to my workings so far is below
 * [http://www.robertgcooke.co.uk/wordpress/](http://www.robertgcooke.co.uk/wordpress/)
 * As you’ll see if you browse onto that is 2 wp-tile sections which work fantastically
   when you first load it up (albeit a bit slow perhaps due to using high resolution
   images but I’ll sort that later down the line) – problem I’m having is that when
   you load another page, then either hit the browser back button or click the logo
   in the top left the tile sections then fail to load for reasons that escape me.
 * Anybody have any idea why this might be happening? I’m lacking in knowledge to
   properly diagnose this issue, I’m not au fait with diagnostic tools at all and
   I don’t really know what I’m looking for to be honest.
 * I suspect the problem may well be to do with how the page itself is created, 
   I’ve told wordpress to use a static homepage and because I’m having some trouble
   getting wp-tile (through no fault of it’s own of course) to expand past the confines
   of the post width, what I’ve done is to create a custom template with wp-tile
   in a div called through PHP and do_shortcode which looks like this:
 *     ```
       <?php
       /**
       * @author jegbagus
       */
       if(!jisAjax()) {
       	get_header();
       } else {
       	get_template_part('includes/page-common');
       }
       ?>
   
       <div id="tiles-homepage"><?php echo do_shortcode('[wp-tiles]');?></div>
   
       <?
       { get_template_part( "includes/page-template" );
   
       }
   
       if(!jisAjax()) {
       	get_footer();
       }
       ```
   
 * As you can tell by this point, I’m not great with this, I’m fine with a bit of
   CSS and what have you but this is way out of my league – that being said, if 
   anyone can see any elementary errors there and I can get this sorted then I’m
   really not that far away from having a working site.
 * If anyone needs anything further from me then please just ask and I will do my
   best.
 * Thank you kindly in advance for any help you may be able to offer.
 * Rob
 * [http://wordpress.org/plugins/wp-tiles/](http://wordpress.org/plugins/wp-tiles/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mike Martel](https://wordpress.org/support/users/mike_cowobo/)
 * (@mike_cowobo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/#post-4271351)
 * Hi Rob,
 * The problem is that your theme loads in pages through AJAX. This means that the
   page is not fully refreshed, and javascripts that are normally executed on pageload
   don’t get loaded. WP Tiles amongst them.
 * I don’t know there are any settings for this in the theme – I know that with 
   some one-click AJAX plugins, you can set up what functions get executed after
   the page loads. That’s only half of the solution though: after this you would
   need to get the information displayed on the tiles from somewhere. I’m sure it
   could be done, but I’m afraid it requires some serious tinkering.
    Alternatively..
   perhaps the theme has a setting somewhere to disable AJAX for specific pages.
   You could set it to not use AJAX when the url the home page.. (not very elegant,
   but the easiest way out).
 * Then, just a slight improvement, you can use the function `the_wp_tiles()` directly,
   instead of `echo do_shortcode('[wp-tiles]');`.
 * Good luck!
    Mike
 *  Thread Starter [robsf](https://wordpress.org/support/users/robsf/)
 * (@robsf)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/#post-4271352)
 * Ah. Good stuff!
 * I’ll have a look into it then, at least I know what the problem is now.
 * Thanks so much for your advice.
 * Kind regards,
 * Rob.
 *  Thread Starter [robsf](https://wordpress.org/support/users/robsf/)
 * (@robsf)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/#post-4271353)
 * And with one click, the problem was solved.
 * Setting in the back end called Curtain Mode, didn’t mention AJAX but it was the
   only one that related to how a page loads, turned it off and it’s working fine
   now!
 * Thanks again!
 *  Plugin Author [Mike Martel](https://wordpress.org/support/users/mike_cowobo/)
 * (@mike_cowobo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/#post-4271354)
 * Hurray! One-click is the best way to fix things 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘No tile function after first load’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-tiles_8f8e84.svg)
 * [WP Tiles](https://wordpress.org/plugins/wp-tiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-tiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-tiles/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-tiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-tiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-tiles/reviews/)

## Tags

 * [back](https://wordpress.org/support/topic-tag/back/)
 * [load](https://wordpress.org/support/topic-tag/load/)
 * [wp-tile](https://wordpress.org/support/topic-tag/wp-tile/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mike Martel](https://wordpress.org/support/users/mike_cowobo/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/no-tile-function-after-first-load/#post-4271354)
 * Status: resolved