Skip to product information
【Dawn】Shopifyのテーマ「Rise/Dawn」の商品詳細ページで商品説明欄の高さが一定以上の場合に自動で開閉処理を追加しておく設定例
Published:2024.12.15

[Dawn] A setting example for adding automatic opening and closing processing when the height of the product description field is above a certain level on the product detail page of the Shopify theme "Rise/Dawn"

For products with long product descriptions, depending on the display position, the purchase button may be pushed quite far down, making it difficult to add the product to the cart. Therefore, in the "Rise/Dawn" theme, we will implement an automatic open/close function when the description exceeds a certain height.

◆Benefits of implementation ・Improved page visibility and improved user experience ・Quick access to necessary information ・Dramatically improved usability when viewed on mobile devices

◆Specific steps ・Add the "Custom Liquid" block to the product information section of the product detail page template ・Insert the code for the open/close function to complete the setup

With this setting, if there is more than a certain amount of product description, a "Read more" button will automatically appear, allowing users to check the content as needed.


An example of a setting that automatically adds opening and closing processing when the height of the product description field is above a certain level on the product detail page of the theme "Rise/Dawn".


How to set it up: Add a customized Liquid section to your collection template and insert the code.


After making a purchase (all items are ¥0), you will be able to view the sample code.

View store information

[Dawn] A setting example for adding automatic opening and closing processing when the height of the product description field is above a certain level on the product detail page of the Shopify theme "Rise/Dawn"

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Set up and code a customized Liquid section in your collection template

↗ Related Post

すべてのShopify TIPS

View all