Search Results for 'filter style'

Forums › Forums › Search › Search Results for 'filter style'

Viewing 10 results – 31 through 40 (of 588 total)
  • Author
    Search Results

  • Anonymous
    Inactive

    Hi, I’ve just bought your brilliant plug in to use on a real estate WordPress site I’m building using Elementor and Toolset. I’ve used an Unlimited Elements Post Block widget with a Search And Filter Pro form here that produces excellent results:

    http://www.whurld.com/agents/

    The only problem is that the following text appears after the end of the search results:

    http://www.whurld.com/wp-content/uploads/ac_assets/uc_article_grid_style_six//no-image.png

    This doesn’t appear in an Unlimited Elements posts grid without Search And Filter so I thought this could be as a result of your software so would it be possible you could help with this please?

    Many thanks,
    Barry.

    #267912

    Trevor
    Participant

    So:

    Q1 Move the sort-dropdown to be in the top right (I read that’s not possible in the current version?)
    A1 You are correct, this will come in V3 (due in a few months)

    Q2 Make a dropdown multi-select of ‘Eten & drinken‘ and ‘Faciliteiten‘
    A2 You want this to be a dropdown with checkboxes? I think that this too will come in V3

    Q3 Use stars in stead of the range-bar, because it’s about review-score. The stars should be colored when you pick them.
    A3 I can only think this would require some custom JavaScript to enable the click on the stars to change the slider (that could be hidden). But to add the stars themselves, again, V3 would make this a lot easier

    Q4 Some space between the dropdown with option ‘Relevantie‘ and ‘Filters wissen‘
    A4 Custom CSS would be needed:

    .searchandfilter[data-sf-form-id="3835"] .sf-field-reset {
        margin-top: 15px;
    }

    With V3, you will have more flexibility to style things using classes, but I am not sure how much control we can give you in the Elementor widget settings. But, something for us to consider.

    You don’t mention the spacing you indicated in the screenshot, for ‘Eten & drinken‘ and ‘Faciliteiten‘, like this:

    .searchandfilter > ul > li[data-sf-field-input-type="checkbox"] > ul > li {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    5px is what it is currently set at, so increase those for more gap, decrease for less gap.

    #267502

    Anonymous
    Inactive

    https://prnt.sc/vodelo Hi, by default I want to active Projections taxonomy when a user comes to this page. Is it possible then how?

    here is my code:

    <?php
    /* 
       Template Name: analysis
    */
    get_header();
    
    	$ourCurrentPage = get_query_var('paged');
        $args = array(  
       'post_type' => 'analysis',
       'post_status' => 'publish',
       'posts_per_page' => 10,
       'taxonomy' => 'projections',
       'paged' => $ourCurrentPage
        );
        $args['search_filter_id'] = 1605;
        $the_query = new WP_Query( $args );?>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/venobox/1.9.1/venobox.min.css" integrity="sha512-e+0yqAgUQFoRrJ4pZigQXpOE0S7J9IGwmgH801h4H5ODqOCG8/GRfXHQ+9ab754NL79O7wDwdjwY3CcU8sEANg==" crossorigin="anonymous" />
        <style>
            .f1p{display:flex;flex-wrap:wrap;max-width:900px;margin:auto;}.grant-parent{width:30%;margin:1%;padding:15px;background:#fff;border:1px solid #e5e5e5;border-radius:4px;}.heding.ccount{font-size:15px;margin-bottom:0px;}.pagination{width:100%;}
        </style>
                <div class="f1b-main" style="padding-top:30px;">
                    <?php echo do_shortcode('[searchandfilter id="1605"]'); ?>
                    <div class="f1p">
                        <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
                        <?php $image = get_field( 'image' );?>
                        <div class="fl grant-parent">
                            <P class="heding ccount"><?php echo get_field( "date" );?></P>
                            <?php 
                                foreach((get_the_terms( $post->ID, 'analysis' )) as $category){
                                    echo "<p><a class='venobox' data-gall='$category->name' href='$image' data-title='the_title()'><img src='$image' /></a></p>";
                                }
                            ?>
                            <p class="heding ccount" title="<?php the_title(); ?>"><b><?php the_title(); ?></b></p>
                        </div>
    
                        <?php endwhile; ?>
    
                        <div class="pagination">
                            <h2><?php echo paginate_links(array(
                        'total' => $the_query->max_num_pages
                        ));
                        ?></h2>
                        </div>
    
                        <?php else : ?>
                        <div class="not-found">
                            <p><?php  _e( 'Sorry, no products matched your criteria.'); ?></p>
                        </div>
                        <?php endif; ?>
    
                        <?php wp_reset_postdata(); ?>
    
                    </div>
                </div>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/venobox/1.9.1/venobox.min.js" integrity="sha512-6mm1Gra+9mSztlk6Q45F1soEHmkduyd2ponCIWNo5pr0lgcr8d79GQjQ3Nw0uRR3/+y/OZGklAi38yE1QSNpCw==" crossorigin="anonymous"></script>
     <script>
     jQuery('input[value="projections"]').trigger( "click" );
     jQuery('.venobox').venobox(); 
        (function($) {
            "use strict";
            jQuery(document).on("sf:ajaxfinish", ".searchandfilter", function() {
                jQuery('.venobox').venobox();
            });
        }(jQuery));
    </script>
    
    <?php do_action( 'kadence_single' );
    get_footer();
    #266877

    Anonymous
    Inactive

    Hi,

    we use the Search & Filter Pro on our website to filter a custom posttype (sneakers) with 5 taxonomies (brand, model, color, target audience, age). We created a custom archive for each of these 5 taxonomies.
    We only created one “search form”.

    In the archive for a specific model for example we call the Search & Filter Pro filters using :

    $sf_current_query = $searchandfilter->get(7183946)->current_query();

    We get a nice list of sneakers that match the current model. But what it also shows if we call the filter using a shortcode (<?php echo do_shortcode( ‘[searchandfilter id=”7183946″]’ ); ?>) – so we can filter on color, target audience and age, the brand and model also are there. From a user experience we find this obsolete so we have hidden it using css override in the archive page :

    <style>
    select[name=”_sft_brand[]”] {
    display : none;
    }
    select[name=”_sft_model[]”] {
    display : none;
    }
    </style>

    Unfortunately this results in our page having a lot of (irrelevant) DOM elements which we would like to exclude. This is because all brands and models are still available in the filter (while hidden using CSS). Please note we have a lot of brands and models and we want to keep the page as clean as possible.

    How can we achieve this? Is there a way we can eliminate the DOM elements of brand and model on this particular taxonomy archive? For example on the model taxonomy we want to filter out the brand and model and on the brand page we want to disable the brand.

    Mark

    PS. Please check https://www.solezilla.nl/model/nike-air-max-90/ for an example

    #266297

    Anonymous
    Inactive

    Hey!
    I’m successfully using your plugin with my Newspaper theme after following your advice to install the additional WP Bakery plugin that is necessary to make it work.
    https://urban-digital.de/smart-city-projekte/

    The only problem now is that I cannot customize the layout of the displayed results. For building the page with my Newpaper theme I inserted the shortcode “[searchandfilter id=”9936″ show=”results”]” to display the results.

    Can you help me please to customize the layout like this?
    https://ibb.co/dgR7cTF

    Thank you!

    #265569

    Anonymous
    Inactive

    Hello, I want to set 2 filter menus: basic and advance. I’ve already prepared CSS styles and JS to switch filters, unfortunately I cannot use basic filters. Only Advance ones work. What am I doing wrong?

    URL: http://lumeris.pl/katalogi/modele-3d/


    Anonymous
    Inactive

    We’ve recently upgraded to the latest version of Search and Filter pro.

    The old version was setup by someone else. We are using a custom template to display search results, with custom taxonomies for the product pages.

    The filtering no longer works, and we are struggling to get multiple pages for results as the we can’t seem to figure our the “loop” for display our results with the information attached.

    Archive page below:

    <?php get_header(); ?>

    <div class=”page-header available”>

    <div class=”container”>

    <?php echo do_shortcode(‘[searchandfilter id=”79″]’); ?>

    </div></div>

    <div class=”full-width-content”>

    <div class=”container”>
    <div class=”sculpture-intro”><h1 style=”font-size:x-Large;”>Sculpture Collection
    </h1><br>

    </div>
    <div class=”row”>

    <div class=”col-md-12″>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <article class=” sculpture_post”>
    <div class=”archive-thumb”>

    “> <?php the_post_thumbnail( ‘archive-thumb’ ); ?>
    </div>

    <h1 class=”archive”>“><?php the_title(); ?></h1>
    <p><?php the_category( ‘, ‘ ); ?></p>
    <div class=”artistt-archive”>
    <?php

    $term = get_field(‘artist’);

    if( $term ): ?>

    <p>by <?php echo $term->name; ?></p>

    <?php endif; ?>
    </div>

    <p><?php the_field(‘price’); ?></p>

    <?php

    $term = get_field(‘size’);

    if( $term ): ?>

    <p>size: <?php echo $term->name; ?></p>

    <?php endif; ?>

    </article>

    <?php endwhile; else: ?>
    <br>
    <div class=”no-result”>
    <h1>sorry! no sculptures match your criteria</h1>
    <br>
    Reset Search
    </div>

    <?php endif; ?>

    </div>

    </div>

    <?php get_footer(); ?>

    #263867

    Anonymous
    Inactive

    Thanks Trevor, I completely understand that you cannot help me with custom css. Let me try a different approach which might be much easier:
    I can wrap the search form into a “Spoiler” (I’m using this plugin https://getshortcodes.com/docs/spoiler/) on mobile and show it only in open status if a filter is set already.
    – Can you please me with a query that will check if any filters are already set
    – wp_is_mobile() also return true on larger screens or on landscape view, do you know a better way?

    $searchform = do_shortcode('[searchandfilter id="8746"]');
    $no_filters_set = 1; // need a query here if any search filters are set
    if ( wp_is_mobile()) {	
    	if 	($no_filters_set)  {
    	    $my_shortcode = '[su_spoiler title="Filter Articles" open="NO" style="default" icon="plus" anchor="" anchor_in_url="no" class=""]';
    	}		
    	else {
    		$my_shortcode = '[su_spoiler title="Filter articles" open="YES" style="default" icon="plus" anchor="" anchor_in_url="no" class=""]';
    	}
    	
    	$my_shortcode .= $searchform;
    	$my_shortcode .= '[/su_spoiler]';
    	echo do_shortcode($my_shortcode);
    } 
    else { echo $searchform; // show the searchform on desktop	
    		}
    #263829

    Trevor
    Participant

    Ah, that we have little or no control over. Let me explain, and then offer a ‘Select’ replacement script as a possible solution (used by many themes).

    One of the reasons so many themes/sites use ‘Select’ replacement scripts is that much of the formatting of standard select controls is done by the browser, and so you have little or no control over that.

    The Chosen script is included with/used by our plugin by default. However, it is now pretty much abandoned and has not received any major updates in a long time. It has poor support for iOS devices for example.

    In the current version of our plugin, there is an option in our settings page to choose which (Combobox) script to use.

    Go to wp-admin -> Search & Filter -> Settings -> Combobox Script

    Change this from Chosen to Select2

    The Select2 script is then available for you to apply to the form. Select2 is maintained now by the WooCommerce team, who are, of course, owned by Automattic, the owners of WordPress, and as such is used by a lot of themes and plugins.

    So, in the form field settings, select the combobox option for each. This will mean you may need to add the styling you want to these fields.

    There is an alternate way of doing this, but this is the easiest. Now you can style the resulting select as it is not a select!

    This post shows the complete Select2 CSS that we already include in our plugin:

    https://support.searchandfilter.com/forums/topic/customise-dropdown-combobox/#post-180345

    At the end is an example of how to modify it.

    #263439

    Anonymous
    Inactive

    Hi, I’m having some trouble getting the ajax event hooks to work.
    I added the code from the FAQ page for sf:ajaxfinish, but I’m not seeing anything in the console log.
    See code below. Does anything stand out as to why this would not be working?

    Thanks.

    
    <?php
    
    /**
     * The template for displaying search results pages.
     *
     * @package understrap
     */
    
    // Exit if accessed directly.
    defined('ABSPATH') || exit;
    
    get_header();
    
    $container = get_theme_mod('understrap_container_type');?>
    
    <div class="wrapper contentPadding" id="search-wrapper">
    
    <link rel="stylesheet" href="<?php echo get_site_url();?>/wp-content/themes/InyoBlogTheme/dist/bricklayer.min.css">
    <script src="<?php echo get_site_url();?>/wp-content/themes/InyoBlogTheme/dist/bricklayer.min.js"></script>
    
    	<div class="<?php echo esc_attr($container); ?>" id="content" tabindex="-1">
    		
    	<div class="row">
    	<!--Display sub navigation partial view -->
    		<?php get_template_part('partials/navtabs'); ?>
    	</div>
    	<div id="test">This is a test</div>
    		
    		<!--Display Search & Filter Widget -->
    		<?php if (is_active_sidebar('search-bar')) : ?>
    							<div id="search-bar" role="complementary">
    								<?php dynamic_sidebar('search-bar'); ?>
    								
    							</div>
    						<?php endif; ?>		
    
    		<header id="search-title">
    			
    			<?php
    			global $searchandfilter;
    			$sf_current_query = $searchandfilter->get(102003)->current_query();	
    			$args = array(
    				"str" => '%2$s'
    			);
    
    			if (!$sf_current_query->get_search_term()=="") {
    			echo '<h3>Search Results for:<span> "' . $sf_current_query->get_search_term() . '"</span></h3>'; 
    			}
    
    			?>
    			
    		</header><!-- .page-header -->
    
    		<div class="row">
    
    			<!-- Do the left sidebar check and opens the primary div -->
    			<?php get_template_part('global-templates/left-sidebar-check'); ?>
    
    			<main class="site-main" id="main">
    
    				<?php if (have_posts()) : ?>
    
    					<div class="bricklayer" id="my-bricklayer"> 
    					<?php /* Start the Loop */ ?>
    
    					<?php while (have_posts()) : the_post(); ?>
    						<?php
    							//Display search results based on content type. 
    							//To change how different content types are displayed in search, edit the content-search loop template.									
    							get_template_part('loop-templates/content', 'search');
    									
    						?>
    						
    					<?php endwhile; 
    
    					wp_reset_postdata();
    
    					?>
    
    					</div><!--Bricklayer-->
    						
    				<?php endif; ?>
    									
    			</main><!-- #main -->
    
    			<!-- The pagination component -->
    			<div class="pt-3">
    				<?php 
    				understrap_pagination();
    		
    				?>
    			</div>
    
    			<!-- Do the right sidebar check -->
    			<?php get_template_part('global-templates/right-sidebar-check'); ?>
    
    		</div><!-- .row -->	
    
    	</div><!-- #content -->
    
    </div><!-- #search-wrapper -->
    
    <script>
    	var bricklayer = new Bricklayer(document.getElementById('my-bricklayer'));
    
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		console.log("ajax complete");
    		//do or stop your animation
    	});
    </script>
    
    <!--Display bottom advertisment-->
    <?php get_template_part( 'partials/poolparts-ad'); ?>
    
    <?php get_footer(); ?>
    
Viewing 10 results – 31 through 40 (of 588 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.