Shopify themes, liquid, logos, and UX
On mobile only, is there a way to remove the main filter category and just keep the filtered item in the button text of the filtered item selected? I am trying to shorten the text on mobile. For example in the image I attached, I would like to only keep "Checkbook Software" and not "Spreadsheet Type: Checkbook Software" in the text of the button.
What css / html code changes are needed to make this work on the Shopify Dawn 10.0 theme at my website:
Thank you.
Solved! Go to the solution
This is an accepted solution.
After looking into the facets.liquid that @Dan-From-Ryviu noted, I found a solution that shortens the length of the filtered item button text for Dawn 10 theme on both mobile and desktop.
In the facets.liquid file, there are 4 separate lines of code that contain only:
{{ filter.label }}: {{ value.label | escape }}
In those 4 lines of code, delete
{{ filter.label }}:
See example filter from my website in the link below:
So instead of:
"Spreadsheet Type: Budget Spreadsheet with Checkbook"
the filtered item button text is now shortened to:
"Budget Spreadsheet with Checkbook"
Hi @bet
You will need to custom code in Online store > Themes > Edit code > facets.liquid file to do that
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Thank you, I was hoping for a simple fix but I can understand that this would would take some extra code. Thank you for your answer.
Most welcome
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
This is an accepted solution.
After looking into the facets.liquid that @Dan-From-Ryviu noted, I found a solution that shortens the length of the filtered item button text for Dawn 10 theme on both mobile and desktop.
In the facets.liquid file, there are 4 separate lines of code that contain only:
{{ filter.label }}: {{ value.label | escape }}
In those 4 lines of code, delete
{{ filter.label }}:
See example filter from my website in the link below:
So instead of:
"Spreadsheet Type: Budget Spreadsheet with Checkbook"
the filtered item button text is now shortened to:
"Budget Spreadsheet with Checkbook"
User | RANK |
---|---|
219 | |
165 | |
65 | |
54 | |
53 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023