Forums › Forums › Search & Filter Pro › Infinite Scroll not working
- This topic has 23 replies, 2 voices, and was last updated 7 years, 3 months ago by
Anonymous.
-
Trevor(Private) November 13, 2017 at 6:41 pm #141690
Hi
I am sorry that I have not been able to take a look at this thread this afternoon, because we had a power outage this afternoon.
Reading your last post, I took a quick look at the page source code and I can see the other form.
But, on the page that works, that also has two forms, so I am not certain this is the issue.
I think it may be the structure of the page, but why should work and the other not, I am not sure.
Our default infinite scroll template has the post container set to
.search-filter-results-list
and the individual post container set to.search-filter-result-item
If I look at your code (for the broken page), it does not have an Ajax Container and has
.worterbuch
as the Post Container.Maybe it should look more like this:
<?php /** * Search & Filter Pro * * Sample Results Template * * @package Search_Filter * @author Ross Morsali * @link http://www.designsandcode.com/ * @copyright 2015 Designs & Code * * Note: these templates are not full page templates, rather * just an encaspulation of the your results loop which should * be inserted in to other pages by using a shortcode - think * of it as a template part * * This template is an absolute base example showing you what * you can do, for more customisation see the WordPress docs * and using template tags - * * http://codex.wordpress.org/Template_Tags * */ if ( $query->have_posts() ) { ?> <div class='search-filter-results-list'> <?php while ($query->have_posts()) { $query->the_post(); ?> <table class="worterbuch search-filter-result-item"> <tbody> <tr> <td colspan="2" class="ueberschrift"><?php the_title(); ?></td> </tr> <tr> <td width="5%" class="sprache">HE</td> <td width="95%" class="inhalt-he"><?php the_content(); ?> </td> </tr> <tr> <td width="5%" class="sprache">EN</td> <td width="95%" class="inhalt"><?php the_excerpt(); ?></td> </tr> </tbody> </table> <?php } ?> </div> <?php } else { echo "Keine weiteren Suchergebnisse"; } ?>
Trevor(Private) November 15, 2017 at 12:46 pm #142099Hi
I don’t want to change anything and break your site, but I do notice a big difference in the javascripts being loaded between working and non-working pages.
Is it possible for you to disable as many plugins as possible, but still leave the search and results showing and Infinite Scroll working on the Home Page, and the test the other page?
-
AuthorPosts