I want to add a short description for each product so you can see what each coffee tastes like before clicking through to product page. How can I do this using FLEX theme? (I want I also want to make the names of the coffee bigger but they don’t seem to change - where can I edit these?
yes, please this code your product cart, product item card item any file
{{ product.description | truncate: 50, ". . . " }}
Hi, thank you - where exactly do I add this code? is it in the theme.liquid somewhere or the style.css? if I truncate the description will it be able to show an image too in the description? I want it to display the roast level?
Hi @GemMuir ,
Please send me the code of featured-collection.liquid file, I will guide you to find the correct file and add the code
if possible to give me theme zip code so i will update or give me theme access
I can’t see a file for this anywhere do you know where it will be? It doesn’t come up if I search this either?
There is a collection main.liquid? or shall I give you access? you might be able to fix the font too!
yes, please
It can be done by doing some code customization. please send me a personal message and we can discuss what you’d like
Hi @GemMuir ,
Please go to product-thumbnail__product-info.liquid file and add code here:
Hope it helps!
Hi @GemMuir ,
Please change code:
{{ product.description | strip_html | truncate: 100 }}
=>
{{ product.metafields.custom.tastes_like_description }}
Then you just go to each product and add data for ‘tastes_like_description’ metafields, it will display fine.
I have added the code for the other 2 metafields that need to be displayed but the image doesn’t show (just as a link) and I don’t know how to style it! Also want to make the product title much bigger but don’t know where I can do this in the theme?
My stickers are not showing now either?
can you please send your code
Hi @GemMuir ,
With image metafield, you need to change the code like following:
The previous code only supports displaying text.
Hope it is clear to you.
Hi, it is nearly there! just shows very squashed together.
-
How can I add space (padding) between the different metafields?
-
How can I change the size of the title font?
-
How can I change the font for the bottom meta field (tastes like)
Hi @GemMuir ,
Go to Assets > styles.css and paste this at the bottom of the file:
/* #1 */
.product-thumbnail__description img {
padding: 5px 0;
}
/* #2 */
.product-thumbnail__title {
font-size: 20px !important;
}
#3: Please send me the code you added for metafield, I will guide it for you.
@LitExtension here is the code for metafields:
@LitExtension and how is the code to add padding to the other 2 metafields:
{{ product.metafields.descriptors.subtitle }}
and
{{ product.metafields.custom.tastes_like_description }}
@LitExtension my stickers (new / coming soon etc) are not showing since we added in the code for the custom description! How can I get them to display? They are enabled in my theme? Thanks



