Forums Forums Search & Filter Pro avada theme

Viewing 10 posts - 11 through 20 (of 23 total)
  • Trevor
    #151946

    In our Archive mode, I do not think that they use a standard search.php template anymore? If you post here the contents of that file in their theme, I can look.

    Anonymous
    #151953

    Thanks. I think i use the shortcode.

    Anonymous
    #152096

    please take a look at http://www.welterbe-reisen.de/suche
    when i click the rest button, there is only 1 result showing

    Anonymous
    #152098

    alos when i choose all

    Trevor
    #152108
    This reply has been marked as private.
    Anonymous
    #152118
    This reply has been marked as private.
    Trevor
    #152124
    This reply has been marked as private.
    Anonymous
    #152132
    This reply has been marked as private.
    Trevor
    #152135

    Hi

    If I switch off Ajax, then the results load correctly. I can see that you have customised the results.php file.

    The problem is that you are loading the posts using Avada’s theme code, and this uses Masonry/Isotope to reload the grid. The Avada code does not use the normal Masonry methods/code to do this. Other users of Avada and Search & Filter Pro have asked them for help but they have not provided the necessary code.

    What I need to know is the necessary javascript to recreate the masonry grid when Ajax is used to reload the results.

    Until they can supply that, using Ajax isn’t going to work properly.

    Anonymous
    #152154

    it not avada theme code its wp theme code. i dont use masonry.
    here is the results.php
    <?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() )
    {
    ?>

    <?php echo $query->found_posts; ?> Ergebnisse gefunden<br />
    Seite <?php echo $query->query[‘paged’]; ?> von <?php echo $query->max_num_pages; ?><br />

    <div class=”pagination”>

    <div class=”nav-previous”><?php next_posts_link( ‘Older posts’, $query->max_num_pages ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( ‘Newer posts’ ); ?></div>
    <?php
    /* example code for using the wp_pagenavi plugin */
    if (function_exists(‘wp_pagenavi’))
    {
    echo “<br />”;
    wp_pagenavi( array( ‘query’ => $query ) );
    }
    ?>
    </div>

    <?php
    while ($query->have_posts())
    {
    $query->the_post();

    ?>
    <div>
    <h2>“><?php the_title(); ?></h2>
    <?php if( have_rows(‘bilder’) ): ?>
    <div class=”acf-gallery col-sm-12 col-xs-12 col-md-3″>
    <div class=”fusion-gallery fusion-gallery-container fusion-grid-1 fusion-columns-total-10 fusion-gallery-layout-grid” style=”margin: -5px; position: relative; height: 1889.1px;”>

    <?php $tmp=0;
    while( have_rows(‘bilder’) ): the_row();
    $image = get_sub_field(‘url’);
    if ($tmp==0) : ?>
    <div style=”padding: 5px; display: block; position: absolute; left: 0px; top: 0px;” class=”fusion-grid-column fusion-gallery-column fusion-gallery-column-1 hover-type-zoomin”><div class=”fusion-gallery-image”>” class=”fusion-lightbox” data-rel=”iLightbox[d2dfb9cbd4d28f5c119]” data-caption=””>” alt=”” title=”” aria-label=”” class=”img-responsive wp-image-397″></div></div>
    <div class=”clearfix”></div>
    <?php $tmp++; ?>
    <?php endif; ?>

    <?php endwhile; ?>
    </div>
    </div>
    <?php endif; ?>
    <div class=”col-sm-12 col-xs-12 col-md-9″><?php the_content(); ?></div>

    <p><?php the_category(); ?></p>
    <p><?php the_tags(); ?></p>
    <div class=”clearfix”></div>

    </div>
    <div class=”clearfix”></div>

    <hr />
    <?php
    }
    ?>
    Seite <?php echo $query->query[‘paged’]; ?> von <?php echo $query->max_num_pages; ?><br />

    <div class=”pagination”>

    <div class=”nav-previous”><?php next_posts_link( ‘Older posts’, $query->max_num_pages ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( ‘Newer posts’ ); ?></div>
    <?php
    /* example code for using the wp_pagenavi plugin */
    if (function_exists(‘wp_pagenavi’))
    {
    echo “<br />”;
    wp_pagenavi( array( ‘query’ => $query ) );
    }
    ?>
    </div>
    <?php
    }
    else
    {
    echo “No Results Found”;
    }
    ?>

Viewing 10 posts - 11 through 20 (of 23 total)