Support » Plugin: Advanced Woo Search » Search Input Box

  • Resolved myiah

    (@myiah)


    After i updated to version 1.76 the input box is out of the contaning box. How do i fix.

    I atached a screenshot of the issue.
    When i roll back to 1.75 it is fine its only when i tried to update it to v1.76

    Please help

    https://snag.gy/hH9BzY.jpg

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

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

    (@mihail-barinov)

    Hello,

    The problem here can be in that in version 1.76 text field was changed from

    type="text"

    to

    type="search"

    Looks like you have some styles specific for text input type.

    So you can change it to old input type by using this code snippet

    add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
    function my_aws_searchbox_markup( $markup ) {
        $markup = str_replace( '<input type="search"', '<input type="text"', $markup );
        return $markup;
    }

    says there is an fatal error when i add the code to the functions.php file
    Please help

    Plugin Author ILLID

    (@mihail-barinov)

    Please try this code

    add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
    function my_aws_searchbox_markup( $markup ) {
        $pattern = '/<input[\S\s]*?type="search"/i';
        $markup = preg_replace( $pattern, '<input type="text"', $markup );
        return $markup;
    }

    Thank you that worked.

    What about the search bar doesnt work neither on update. it is the one that is on mobile

    its the white tab bar with the search icon in it when you are on mobile. It stopped working when you update to the new version.

    Plugin Author ILLID

    (@mihail-barinov)

    Sorry, doesn’t clear for me.
    You have a problem with displaying search form on mobile?

    If so please tell me where on mobile devices this search form must be?

    Regards

    Never-mind i believe it is fix thanks for your help and support 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.