• Resolved gulliver-greece

    (@gulliver-greece)


    Hello.
    Is there a way to show the AJAX Search bar at the top for mobile/responsive? Below header/subheader.
    Let’s say in “woocommerce_archive_description” hook?
    I have put the AJAX Search widget in Woocommerce sidebar.
    I currently use also X for woocommerce product filter within woocommerce sidebar widget.
    Please advise.
    Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello,

    Yes, you can embed the search in hook woocommerce_archive_description in the following way:

    
    add_action('woocommerce_archive_description', function(){
        echo do_shortcode('[wcas-search-form]');
    });
    

    or only search icon instead of search bar

    
    add_action('woocommerce_archive_description', function(){
        echo do_shortcode('[wcas-search-form layout="icon"]');
    });
    

    Probably you will need to add some CSS to adjust it.

    Best
    Damian

    Thread Starter gulliver-greece

    (@gulliver-greece)

    Hello.
    Thank you very much for your reply.
    I did the same for the “woocommerce_before_single_product” hook and it works perfectly.
    Thanks again for your great support.
    Best Regards,
    Vassilis

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AJAX Search at the top for mobile/responsive’ is closed to new replies.