title: Removing custom pagination and using jetpack infinite scroll
body: <p>I've followed the Jetpack Infinite scroll instructions for custom themes and still it doesn't work!</p>
  
  <p>I've found a pagination.php in theme/framework/functions/pagination.php and I don't know if this is taking over or making it not work.</p>
  
  <p>This is the pagination code</p>
  
  <pre><code>&lt;?php
  //custom pagination function
  function pagination($pages = '', $range = 4) {
   $showitems = ($range * 2)+1;
   global $paged;
   if(empty($paged)) $paged = 1;
  
   if($pages == '') {
       global $wp_query;
       $pages = $wp_query-&gt;max_num_pages;
       if(!$pages) {
           $pages = 1;
       }
   }  
  
   if(1 != $pages) {
       echo "&lt;div class=\"page-pagination\"&gt;&lt;div class=\"page-pagination-inner clearfix\"&gt;";
       echo "&lt;div class=\"page-of-page\"&gt;&lt;span class=\"inner\"&gt;".$paged." of ".$pages."&lt;/span&gt;&lt;/div&gt;";
       for ($i=1; $i &lt;= $pages; $i++) {
           if (1 != $pages &amp;&amp;( !($i &gt;= $paged+$range+1 || $i &lt;= $paged-$range-1) || $pages &lt;= $showitems ))
           {
               echo ($paged == $i)? "&lt;span class=\"current outer\"&gt;&lt;span class=\"inner\"&gt;".$i."&lt;/span&gt;&lt;/span&gt;":"&lt;a href='".get_pagenum_link($i)."' class=\"inactive\"&gt;&lt;span class=\"inner\"&gt;".$i."&lt;/span&gt;&lt;/a&gt;";
           }
       }
        echo "&lt;/div&gt;&lt;/div&gt;\n";
   }
  } // end pagination()
  ?&gt;
  </code></pre>
  
  <p>should i delete it with the function to get infinite scroll working?</p>