• Hello,

    I inserted shortcode into my header. It works fine when I press enter. But I need to show my Go button so that viewers can also search product by clicking into it. Please check this screenshot it’ll be clear. https://prnt.sc/gfup6q

    Thank You

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    As I understand you need something like submit button in the right side of search form.

    You can add it with help of this lines of code:

    add_filter('aws_searchbox_markup', 'aws_searchbox_markup');
    
    function aws_searchbox_markup( $markup ) {
        $pattern = '/(<input\s*type=\"text\".*?\/>)/i';
        $markup = preg_replace( $pattern, '${1}<button class="aws-icon">GO</button>', $markup );
        return $markup;
    } 

    its will add ‘GO’ button that you want.

    You only need to style it as you need.

Viewing 1 replies (of 1 total)
  • The topic ‘How to insert GO button?’ is closed to new replies.