Hi Nicu,
I tried to visit your site but it wouldn’t load on my browser. Could you show me a screencast of the problem you are having, and that you are searching for products that do exist in your store? Thanks!
Thank you for your reply, Mikey.
Sorry, I misspelled.
The site is http://www.papercupsplates.co.uk.
Try deactivating any other plugins you’ve installed to check for a conflict. The search form in the header just uses the standard WooCommerce Product Search widget so should work fine.
The Search from the Header does not work. The Search widget from the sidebar works perfect.
The strange thing is that when I write a search term on the sidebar search widget…it instantly appears also on the header search.
I don’t care where from that search widget is, I just want to have a functional search widget on the header.
So, is there a way to put that working Search widget also in the Header?
There is also a small Search icon on the right side of My Profile icon, when I’m logged on. This also works perfect as a product search widget. Interesting.
The search works fine for me? It returns products exactly as I’d expect it to.
The search in your sidebar is a standard search widget (not a product search widget) so it will return posts / pages.
Thank you JamesKoster
Yes, you are right again.
But that “standard serch widget” leads directly to the product page. For eaxample, if you search for “meal” it will return all “meal boxes” and nothing else. I would like to have the same widget on the header, if it is possible.
I’ve noticed that I could place that “standard search” bellow header, but it looks bad, it is stretched along the entire page and has a too big padding.
I’m sorry I bother you with this problem, but i think that search widget works better for me.
Thank you.
Hey,
Easiest way to do this would be to redeclare the storefront_product_search()
function.
function storefront_product_search() { ?>
<div class="site-search">
<?php the_widget( 'WP_Widget_Search', 'title=' ); ?>
</div>
<?php
}
}
Cheers!
Sorry, but I cannot find where that function is initialy declared. It looks I’m missing something.
That doesn’t matter, you just need to redeclare it by pasting the code from my previous post in to your functions.php file π
Parse error: syntax error, unexpected ‘}’ in /home/papercup/public_html/wp-content/themes/storefront/functions.php on line 45
That’s when I add it in functions.php
ok. Now I managed to break all. Nohing functions anymore, just the same parse error, site does not functions anymore.
Hey, I mean it: the site does not function anymore, even in admin mode!!!!!!
http://www.papercupsplates.co.uk/wp-admin/
The result is Parse error: syntax error, unexpected ‘}’ in /home/papercup/public_html/wp-content/themes/storefront/functions.php on line 45
I mean it, this is not a joke!!!!!!
Ok, I’ve manage to solve it.