-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjusting the search page's layout #15
Comments
Oopsie, something went wrong 😿Results✅✅✅✅✅✅❌✅❌✅✅✅✅ Tests✅ Getting the file Try again 😁 |
You did great! 😁Results✅✅✅✅✅✅✅✅✅✅✅✅✅ Tests✅ Getting the file |
You have successfully completed this step!Go to the next step! |
Adjusting the search page's layout
✨ Branch: search2
Introduction
In the last step, we've looked at the search page and its main components. We also learned that the search layout works like any other block, with the added benefit of having all the flexibility it can muster. In this step, we'll create some lines and columns to improve the appearance of the created search.
Activity
In the
search.jsonc
file, removetotal-products.v2
andorder-by.v2
fromsearch-result-layout.desktop
.Replace both with a line that includes the removed blocks:
Remove
search-content
andfilter-navigator.v3
fromsearch-result-layout.desktop
and create a results line;Place two columns in the results line:
Set the
filter
column'swidth
prop to20%
.In the left column, include
filter-navigator.v3
again and, in the right, includesearch-content
.To finish, we'll use the same product summary (
product-summary
) that we used to display search results on the shelf.Define your
search-content
with thegallery
andnot-found
blocks:Use
product-summary.shelf
in the Gallery's props:In the
product-summary.shelf
block, found indefault.jsonc
, includeproduct-summary-sku-selector
aboveproduct-summary-buy-button
.ℹ️ Remember to access the Flex Layout documentation if you have any questions during the activity.
🚫 Are you lost?
Is there any problem with this step? What about sending us a feedback? 🙏
Submit feedback
If you're still unsure as to how to send your answers, click here.
The text was updated successfully, but these errors were encountered: