- This topic has 13 replies, 3 voices, and was last updated 7 years, 2 months ago by Tom.
-
AuthorPosts
-
February 17, 2017 at 7:16 am #280175Dani
If I understand it correctly, the wordpress search uses the theme’s search page to display results. Is that correct?
I have the search in my header widgets, but when I search for a product, the search result is not only shown in the middle of the page, but in the sidebars, too. If I activate the Woocommerce product search in the widget instead of the wordpress search it looks even worse, because it shows the result ONLY in the sidebars, not the page itself. That looks blank. Also it gives me results for two languages instead just the language of the user. (That could be a conflict with my WPML language plugin) What am I doing wrong?
Ideally I would like to display only product search result in the middle of the page in a grid like the normal category page displays.February 17, 2017 at 9:45 am #280270TomLead DeveloperLead DeveloperHi there,
That’s correct.
Can you link me to a search results page that looks off so I can take a look at what’s happening?
Thanks!
February 17, 2017 at 10:35 am #280295DaniThis is the link for an example: https://shop.adorablepaws.de/?s=magnusson
You can see on the left side bar all the Magnusson products added to the widgets. They were not there before the search.
February 17, 2017 at 10:43 am #280299DaniArg, I just noticed, I had a plugin called Woo Search By Product Tag. Just deactivated it and the search is not shown in the widgets anymore. Sorry!
But is there a way to modify he generatepress searchform so it seraches for products and tags and shows like a product grid?
February 17, 2017 at 7:37 pm #280431TomLead DeveloperLead DeveloperThe regular search form or the navigation search form?
February 19, 2017 at 1:20 am #280830DaniHello again, first I want to apologise, I was totally confused with the WordPress/Woocommerce searches, I think I completely misunderstand it all.
Now I understood how it works, but still have some questions. I hope they are related to your themes programming, if not, please let me know and I try to find another solution.
My first question:
If you go to https://shop.adorablepaws.de/en and take a look the left sidebar widgets. There is a search box with the submit button. How can I align the submit button with the search box so t’s not showing underneath the box?My second question:
I now installed the Relevanssi plugin to get better search results. That works really good. The thing I don’t like is how the results are displayed. I have difficulties explaining it in English, but I try. 😉 I would like the result to show not below each other, but listed as if it was a product gallery with an image like if you are clicking through my shop for example on the category puppy equipment: https://shop.adorablepaws.de/en/pets/puppy-equipment/ and scroll down a bit you see the products listed with name and image.Is that possible?
February 19, 2017 at 9:07 am #280935LeoStaffCustomer SupportHi Dani,
1. Try this CSS:
.widget .search-field { width: 75%; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
2. I think this question would be more suitable for the Relevanssi plugin author.
However, the Search results pages of this page might help: https://www.relevanssi.com/category/knowledge-base/Hope this helps!
February 19, 2017 at 10:05 am #280954DaniThank you very much Leo. The code worked!
I’ll have a look through the Relevanssi page. Thanks for pointing me in the right direction.
February 19, 2017 at 10:14 am #280964LeoStaffCustomer SupportYou’re very welcome 🙂
February 21, 2017 at 12:36 am #281711DaniI can be very insistent if I want something 🙂 and I found a solution. I’d thought I’d post here, in case some others have the same “problem”.
Perhaps I explained my questions incorrect due to the lack of technical English. The plugin Relevanssi works perfect with GP+Woocommerce and my problem with not liking the display of search result was solved by customising in the GP settings. The features image must be enabled and the blog columns layout set to three and voila, the search result displays Woocommerce products with product image, a short description and the layout is in columns, just like a shop product list view. This is how my search looks now: https://shop.adorablepaws.de/en/search/yento
The only thing missing or I should say what I would like to ideally see displayed in the search result, too, is the product price.
The Relevanssi plugin author said, that for the price to be shown the theme’s search file must be modified.
Besides you writing “no direct access please” in your serach file, I admit not having much knowledge of php. If you have any idea how to amend your search form to also show the product price, please let me know what I need to add where. If not, no worries. I’m happy that at least I have the search result now closely looking like I wanted it 🙂
February 21, 2017 at 3:35 pm #282150LeoStaffCustomer SupportThanks for reporting back and sharing the solution 🙂
February 21, 2017 at 11:33 pm #282248TomLead DeveloperLead DeveloperIncluding the price in the search results would require a custom template to be added.
I do have a WooCommerce add-on planned which would have this functionality.
For now, you might find a third party plugin or WC extension that will help.
Here’s an interesting one: https://en-ca.wordpress.org/plugins/advanced-woo-search/
February 22, 2017 at 12:14 am #282258DaniThanks for the info Tom. I’ll stick with my search plugin for now. Looking forward to your Woocommerce add-on 🙂
February 22, 2017 at 11:25 am #282556TomLead DeveloperLead DeveloperSounds good! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.