• Seamless integration did not work. I used AWS on another theme and it worked great no issues. Idc if the theme search will be replaced, but I cant figure out how to do it lol. I tried “4. Add PHP code to the necessary files of your theme: <?php if ( function_exists( ‘aws_get_search_form’ ) ) { aws_get_search_form(); } ?>” Said too many errors may break site if i use it. Also adding AWS as a widget it wont add to the top in the theme that I can find only footer and sides.

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

    (@mihail-barinov)

    Hello,

    Please add following code to your theme functions.php file

    add_filter('porto_search_form_content', 'aws_porto_search_form_content');
    
    function aws_porto_search_form_content( $markup ) {
        $pattern = '/(<form[\S\s]*?<\/form>)/i';
        $markup = preg_replace( $pattern, aws_get_search_form( false ), $markup );
        return $markup;
    }
    Thread Starter ar15ss

    (@ar15ss)

    Life saver brother. search results would open in a “Blog page” and looked dumb and didnt show all the matching terms.

    Thanks man ten thumbs up on the product

    Plugin Author ILLID

    (@mihail-barinov)

    You mean that search results page display products on ‘Blog page’ template?

    Thread Starter ar15ss

    (@ar15ss)

    yea AWS loads results in regular woocommerce product page so much better.

    Plugin Author ILLID

    (@mihail-barinov)

    Well it this case most probably is that your theme doesn’t have template for WooCommerce products search results. AWS plugin doesn’t creates its own search results page. Its just add its results to existing one.

    Thread Starter ar15ss

    (@ar15ss)

    cool well thanks for getting AWS to work on my theme. Is there a way to use the default/theme appearance of the search box?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cant get AWS to work w/ Porto Theme’ is closed to new replies.