• Resolved baudouin88

    (@baudouin88)


    Great plugin, good job!

    Would you mind telling how could I add a search button next to it ? (Same action than when you press enter after typing your keyword.)

    Have a great day!

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

    (@mihail-barinov)

    Hi,

    You can manually add submit button for search form.

    Its can be done using build-in filter ‘aws_searchbox_markup’.

    Somewhere in your theme files ( usually it is functions.php ) add 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}<input type="submit" value="Search"/>', $markup );
        return $markup;
    }

    And don’t forget to style this submit button as you want.

    • This reply was modified 7 years, 9 months ago by ILLID.
    Thread Starter baudouin88

    (@baudouin88)

    Hi!

    Thanks you very much ILLID.

    Good job and thanks again for the great work ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Button’ is closed to new replies.