This topic has 8 replies, 2 voices, and was last updated 6 years, 5 months ago ago by Rose Tyler
Hey there,
Is there a way to integrate the product search into the filterbar on the right?
so it would look like this?
Yours sincerely
Joey
Hello,
This requests additional customization.
Try to add get_product_search_form();
– function like on the next screenshot
https://image.prntscr.com/image/Vl0NEegnRSaSvM9ywJouxA.png
and remove product search from shop filters widget area (if you want it only in top area and not in filters like before) https://image.prntscr.com/image/M0OJeVSHSQOHyXhcRTopLw.png
Regards
Did not think that it would be possible :). But I can not find the file where I have to insert the code. Can you tell me the corresponding file or even insert the code yourself? Only if it would not cause you any trouble.
Regards
Joey
The required file is archive-product.php in xstore/woocommerce folder.
Regards
Hey,
so far everything goes well, thank you. But how can I position the search bar in the top right corner? At the moment it looks like this:
Regards
Joey
Hello,
Please add this code in Theme Options > Styling > Custom css:
.filter-content .woocommerce-product-search {
width: auto;
display: inline-block;
float: right;
}
.filter-content .woocommerce-product-search label {
display: none;
}
@media (max-width: 992px) {
.filter-content .woocommerce-product-search {
float: none;
}
}
Regards
Great! Many thanks!
Regards
Joey
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up