[resolved] [Plugin: WooCommerce Predictive Search] Adding search bar to 404 pages (3 posts)

  1. Chirag Vora
    Posted 3 years ago #

    I'm trying to add WooCommerce Predictive Search plugin search box in my custom 404 error pages.

    See the page here: playseebow.com/404

    As you can see, I have placed woocommerce search function get_product_search_form(); onto the page. However, instead of default woocommerce search I want to make use of Predictive search plugin.

    So I replace get_product_search_form(); with if(function_exists('woo_predictive_search_widget')) woo_predictive_search_widget();

    But it does not bring up predictive search. Therefore it appears that 'woo_predictive_search_widget' function is not present for wp_die pages.

    So what should I do to get this widget on 404 pages?

  2. Chirag Vora
    Posted 2 years ago #


  3. Chirag Vora
    Posted 2 years ago #

    I was able to achieve this

Topic Closed

This topic has been closed to new replies.

About this Topic