• Resolved slimmz

    (@slimmz)


    Hello,

    I have my site running with Nitro theme and since i have an issue with the standard woocommerce search result, I install the AWS plugin, but it seems not to work with the default search form even if i turn on the seamless mode.

    Any help?

    Cheers,
    slimmz

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

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

    (@mihail-barinov)

    Hi,

    Please try to use following code snippet:

    add_filter( 'aws_js_seamless_selectors', 'wr_nitro_js_seamless_selectors' );
    function wr_nitro_js_seamless_selectors($selectors) {
        $selectors[] = '.search-form-inner form';
        return $selectors;
    }
    
    add_action( 'wp_head', 'wr_nitro_wp_head' );
    function wr_nitro_wp_head() { ?>
    
        <style>
    
            .hb-search-fs .aws-container {
                width: 500px;
                max-width: 500px;
                position: absolute;
                top: 50%;
                left: 50%;
                -webkit-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);
            }
    
            .wrls-header-outer .aws-container {
                width: 650px!important;
                margin: 0;
                padding: 0 35px 0 10px;
                height: 38px;
            }
    
        </style>
    
        <?php
    
    }

    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

    Thread Starter slimmz

    (@slimmz)

    Thanks mate

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Compatibilty With Nitro Theme’ is closed to new replies.