-
Search Results
-
Hi Trevor,
Love the plugin. I have created a page (using the new Thrive Architect) that simply has 2 columns and the relevant short code for the search form in the left column and the results in the right column. I have also created a custom results.php fileEverything works fine re results and filtering however the check boxes have a “styled” class on them when the page first loads and as soon as you select any of the filters in the form and the results reload. The check boxes in the form then loose the “styled” tag.
On Page Load:
<li class="sf-level-0 sf-item-36" data-sf-count="4" data-sf-depth="0"> <input value="masterclass" name="_sft_category[]" id="sf-input-c9d6c3225e54e2a88ba6865be80c549f" class="sf-input-checkbox styled" type="checkbox"> <label class="sf-label-checkbox" for="sf-input-c9d6c3225e54e2a88ba6865be80c549f">Masterclass<span class="sf-count">(4)</span></label> </li>
After page results are filtered:
<li class="sf-level-0 sf-item-36" data-sf-count="4" data-sf-depth="0"> <input value="masterclass" name="_sft_category[]" id="sf-input-c9d6c3225e54e2a88ba6865be80c549f" class="sf-input-checkbox" type="checkbox"> <label class="sf-label-checkbox" for="sf-input-c9d6c3225e54e2a88ba6865be80c549f">Masterclass<span class="sf-count">(4)</span></label> </li>
Please advise on a fix for this.
FYI. As yet I have not added our License key to the plugin on the settings page as it is on our staging server.
Kind Regards
RickHello,
We’ve used this plugin on a few sites and it has worked great! So thanks for the awesome plugin.
On both of those sites we’ve done the pagination with the WP-PageNavi plugin which is suggested in the default results.php template you provide. My question is, how can I use Search And Filter with native WP pagination?
Right now I have a site that uses the Search And Filter and uses AJAX refresh. When I click the numbers in the pagination, the results refresh properly, but the pagination styles don’t change to reflect that. The current page number doesn’t change, and the previous page link does not show up. Additionally, clicking the next page link works the first time, but the second time it’s clicked it goes back to the original results (page 1).
Here’s the code I’m using for the pagination inside the results.php file (theme/search-filer/results.php):
<?php // Pagination $total = $query->max_num_pages; // only bother with pagination if we have more than 1 page if ( $total > 1 ) : ?> <nav class="pagination text-center"> <?php // Set up pagination to use later on $big = 999999999; // need an unlikely integer $pagination = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('sf_paged') ), 'total' => $total, 'type' => 'plain', 'prev_next' => true, 'prev_text' => __('', 'visceral'), 'next_text' => __('', 'visceral') ) ); echo $pagination; ?> </nav> <?php endif; ?>
Any directions for getting this to work without WP-PageNavi?
Thanks!
TravisHello,
I want the checkboxes code structure to look like this:
<label class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input"> <span class="custom-control-indicator"></span> <span class="custom-control-description">Check this custom checkbox</span> </label>
See: https://getbootstrap.com/docs/4.0/components/forms/#checkboxes-and-radios-1
Is there any way to achieve this? I didn’t find a matching filter.
Topic: Post container classes
Hello,
I have set a class for the individual post container, as specified in the documentation here.
https://www.designsandcode.com/documentation/search-filter-pro/search-results/infinite-scroll/
However, I don’t see the any CSS classes showing up on the page. I’d like to style the search results to be in columns.For reference, this is the page I’m working on.
https://smartclickiq.wpengine.com/client-area/Also, is there a way to remove the “Found X Results” and “Page 1 of 1” text in the search results?
Thanks!
Topic: Please help to fix the error
Hi!
<?php if ( $query->have_posts() ) { ?> <div style="width: 100%;">Найдено <?php echo $query->found_posts; ?> Результатов<br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Еще результаты', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Прошлые результаты' ); ?></div> </div> </div> <?php $column_count = 0; while ($query->have_posts()) { $query->the_post(); ?> <div class="one_third" style="margin-right: 0px;"> <?php if ( has_post_thumbnail()) { ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail(); ?></a><?php } ?> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> </div> <?php $column_count ++; ?> } } <?php else {echo "Ничего не найдено";} ?>
Parse error: syntax error, unexpected ‘else’ (T_ELSE) in /home/sobaka-pav/dk-moskvor.ru/docs/wp-content/themes/Divi/search-filter/results.php on line 33
Hey again.
We have / found an issue with Search&Filter (shortcode embedded) solution combined with Jupiter5 theme.
This issue hits only on Mobile-Android devices (iOS have no problem with that) and flyout menu.First of all: the native search from Jupiter5 theme works fine: https://demos.artbees.net/jupiter5
If you open the menu and click in the Search-Field you can see that the flyout and keyboard is visible for a few seconds and then it disappears. We already remove our custom styles and javascripts but this issue still disappear.
Is this related to a filter setting?