• Hi,

    I have the pro version of the plugin. On the site mentioned, when I search anything from the search form and go to search results page, it shows ‘No products were found matching your selection.’

    I have already tried experimenting with all the options in the backend but it still is not working. Please help

    —————————–
    I am not able to change the CSS also in the theme.

    The search bar is added seamlessly in the theme as there is no section to input search form shortcode.

    • This topic was modified 3 years, 11 months ago by FreeFugga.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Please tell me the name of your WP theme. Also – do you use any page builder plugin to customize search results page?

    Regards

    Thread Starter FreeFugga

    (@freefugga)

    Theme – Freshio 1.7.0

    I use elementor page builder but did not touch anything related to search results page

    Plugin Author ILLID

    (@mihail-barinov)

    Looks like I figured out what caused this issue.
    On Monday a new version will be released with the fix for this.

    Thread Starter FreeFugga

    (@freefugga)

    Hi, seems like the issue is fixed but I think we both missed a major problem, or if it could be fixed with a css code, please help me…

    Screenshot – https://prnt.sc/125h6jg

    Plugin Author ILLID

    (@mihail-barinov)

    Here is the code to always display search results block at top on mobile devices:

    add_action( 'wp_enqueue_scripts', 'aws_wp_enqueue_scripts', 999 );
    function aws_wp_enqueue_scripts() {
    
        if ( ! wp_is_mobile() ) {
            return;
        }
    
        $script = '
            function getResultsBlockHeight( resultsBlock ) {
                   var $resultsBlock = jQuery( resultsBlock );
                    var resultsHeight = $resultsBlock.height();
    
                    if ( resultsHeight === 0 ) {
                        var copied_elem = $resultsBlock.clone()
                            .attr("id", false)
                            .css({visibility:"hidden", display:"block",
                                position:"absolute"});
                        jQuery("body").append(copied_elem);
                        resultsHeight = copied_elem.height();
                        copied_elem.remove();
                    }
    
                    return resultsHeight;
            }
            
        
            function aws_results_layout( styles, options ) {
            
                    var offset = options.form.offset();
                    var bodyOffset = jQuery(\'body\').offset();
                    var bodyPosition = jQuery(\'body\').css(\'position\');
                    var bodyHeight = jQuery(document).height();
                    var resultsHeight = options.resultsBlock.height();
                    
                    
                    if ( bodyPosition === \'relative\' || bodyPosition === \'absolute\' || bodyPosition === \'fixed\' ) {
                        styles.top = offset.top + jQuery( options.form).innerHeight() - bodyOffset.top;
                        styles.left = offset.left - bodyOffset.left;
                    } else {
                        styles.top = offset.top + jQuery( options.form).innerHeight();
                        styles.left = offset.left;
                    }
                    
                    resultsHeight = getResultsBlockHeight( options.resultsBlock );
                    styles.top = styles.top - resultsHeight - jQuery(options.form).innerHeight();
                    
                    
                return styles;
            }
            AwsHooks.add_filter( "aws_results_layout", aws_results_layout );
        ';
    
        wp_add_inline_script( 'aws-script', $script);
        wp_add_inline_script( 'aws-pro-script', $script);
    
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No results on Search Page’ is closed to new replies.