Title: Ajaxified navigation
Last modified: August 30, 2016

---

# Ajaxified navigation

 *  Resolved [Andrius Vlasovas](https://wordpress.org/support/users/vlaskiz/)
 * (@vlaskiz)
 * [11 years ago](https://wordpress.org/support/topic/ajaxified-navigation/)
 * So I am back again, with another issue. Just noticed that the navigation that
   is used (thanks again for helping to get it working) is in ajax or jquery (not
   entirely sure). Now I am using masonry jquery plugin from [http://masonry.desandro.com/faq.html](http://masonry.desandro.com/faq.html)
   and start it with following:
 *     ```
       <script type="text/javascript">
       jQuery(document).ready(function( $ ) {
       	$('.strong-content').masonry({
       	  columnWidth: 161,
       	  itemSelector: '.testimonial'
       	});
       });
       </script>
       ```
   
 * after clicking on any other page, it scrolls to top, however all items then gets
   stacked on top of each other. Is this something more on your side or on that 
   masonry plugin. Any chance you can guide me regarding this?
 * [https://wordpress.org/plugins/strong-testimonials/](https://wordpress.org/plugins/strong-testimonials/)

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

 *  Thread Starter [Andrius Vlasovas](https://wordpress.org/support/users/vlaskiz/)
 * (@vlaskiz)
 * [11 years ago](https://wordpress.org/support/topic/ajaxified-navigation/#post-6564909)
 * I have figured out that somehow I need to implement
    reloadItems(); and layout();(
   probably on new page nav click), any clue how and what listener should be added?
 *  Thread Starter [Andrius Vlasovas](https://wordpress.org/support/users/vlaskiz/)
 * (@vlaskiz)
 * [11 years ago](https://wordpress.org/support/topic/ajaxified-navigation/#post-6564918)
 * Got a decent fix on my own, in case someone will want to deal with masonry in
   the future:
 *     ```
       <script type="text/javascript">
       	jQuery(document).ready(function( $ ) {
       		var $grid = $(".strong-content").masonry({
       			columnWidth: 161,
       			itemSelector: '.testimonial'
       		});
   
       		$(".simplePagerNav a").click(function(){
       				$grid.masonry('layout');
       				$grid.masonry('reload');
       		});
       	});
       </script>
       ```
   

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

 The topic ‘Ajaxified navigation’ is closed to new replies.

 * ![](https://ps.w.org/strong-testimonials/assets/icon-256x256.png?rev=3134855)
 * [Strong Testimonials](https://wordpress.org/plugins/strong-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/strong-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/strong-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/strong-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/strong-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/strong-testimonials/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Andrius Vlasovas](https://wordpress.org/support/users/vlaskiz/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/ajaxified-navigation/#post-6564918)
 * Status: resolved