Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I’m wondering if is it possibile to make the search icon in Vantage menu acting like the search function of Woocommerce, which searches and display only the products of the store.
Hi zeitan
Good question for sure. We haven’t experimented with this before. I’d imagine you’d need to use a plugin, perhaps search for one and let us know if you find a good one:
Perhaps this one?
https://wordpress.org/plugins/advanced-custom-post-search/
There is a way to insert the shortcode of this plugin in the seach function of vantage?
Unfortunately in this case you’d need to use that plugin in a widget area, insert the shortcode into a Text widget in the header, sidebar or footer widget areas.
Is it possible to make the vantage search form to call for another search function, overriding vantage one?
It is with some custom development. You’d need to use a child theme, create a folder called “parts” in the child theme. Copy menu.php from /parts/ in the parent theme into the new parts folder in the child theme and then replace lines 8 through 15 with the PHP call to your new search function.
It’s unfortunately a little beyond our scope here, we can advise on a high level like the above though.
Hi andrew, I’m trying to change the menu.php but it seems that the theme isn’t loading that file for the menu.
I’m writing echoes everywhere but I can’t find them in the html.
Which masthead layout are you using? If you’re using Logo in Menu then menu.php won’t be used, masthead-logo-in-menu.php will be used.
Thank you! I managed to merge the woocommerce function in Vantage but I have some graphic problems. Is searchform.php involved?
Glad to hear you’ve made some progress. masthead-logo-in-menu.php has the code for the search form listed there, it’s not including searchform.php.
Unfortunatly I’m still working in local beacuse my client had a big hosting problem…
Anyway I solved the search problem changing this in masthead-logo-in-menu.php :
and adding this in my child functions.php :
Now it works like a charm!
Thank You Andrew!
Hi Zeitan
Nicely done! Thanks for taking the time to share your work on the forum, I’m sure others will find this thread useful.
All the best.
Hello!
I just come to another solution, that works with SiteOrigin North theme:
Just add this to your functions.php file
In the line:
You can specify the array of pages to show
Thanks for all your excellent work!