Shopify themes, liquid, logos, and UX
hello, how to put size chart in my product page, i cant see, select a page in my collapsible row, thank you for the help
Solved! Go to the solution
This is an accepted solution.
Step 1: Navigate to Settings -> Custom Data -> Products. Click "Add Definition" and create a metafield named "Size Chart Image" with the type set to "file".
Step 2: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "image_picker",
"id": "image_with_text_image",
"label": "Image"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
{% if block.settings.image_with_text_image != blank %}
<img src="{{ block.settings.image_with_text_image | img_url:'master' }}" style='margin-top:20px;'>
{%- endif -%}
Hello @sebfe,
To add a size chart to your product page, you can follow these steps:
the collapsible row i have dont have page, how to make metafields for it,
Can you please tell me which theme you have used?
i am using impact theme
This is an accepted solution.
Step 1: Navigate to Settings -> Custom Data -> Products. Click "Add Definition" and create a metafield named "Size Chart Image" with the type set to "file".
Step 2: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "image_picker",
"id": "image_with_text_image",
"label": "Image"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
{% if block.settings.image_with_text_image != blank %}
<img src="{{ block.settings.image_with_text_image | img_url:'master' }}" style='margin-top:20px;'>
{%- endif -%}
this is the result, it has image option now, is it possible to have "select a page" option also, thank you
Step 1: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "page",
"id": "page-size",
"label": "Page"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
<p>{{ block.settings.page-size.content }}</p>
What do I do if I have different size charts for different products?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025